/* RG Learning - Blue & White Theme */
* { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #60a5fa; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.animate-fadeIn { animation: fadeIn 0.35s ease-out forwards; }
.animate-slideUp { animation: slideUp 0.45s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

.glass {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Mobile Bottom Nav - Floating Transparent */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 400px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.6);
    z-index: 50;
    padding: 6px 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 8px;
    border-radius: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #94a3b8;
    min-width: 48px;
    flex: 1;
    text-decoration: none;
}
.bottom-nav-logout {
    color: #f87171 !important;
}
.bottom-nav-logout:active,
.bottom-nav-logout:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    box-shadow: none !important;
    transform: none !important;
}

.bottom-nav-item.active {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
    transform: translateY(-2px);
}

.bottom-nav-item:active { transform: scale(0.95); }
.bottom-nav-item i { font-size: 1.15rem; }
.bottom-nav-item span { font-size: 0.62rem; font-weight: 500; }

.card-hover { transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37,99,235,0.1); }

.input-uppercase { text-transform: uppercase; }

.ql-toolbar.ql-snow {
    border-radius: 12px 12px 0 0;
    border-color: #e2e8f0;
    background: #f8fafc;
}
.ql-container.ql-snow {
    border-radius: 0 0 12px 12px;
    border-color: #e2e8f0;
    min-height: 180px;
    font-family: 'Inter', sans-serif;
}

.progress-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563EB, #3B82F6);
    transition: width 0.5s ease;
}

.upload-zone {
    border: 2px dashed #bfdbfe;
    transition: all 0.25s ease;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: #2563EB;
    background: #eff6ff;
}

.sidebar-item { transition: all 0.2s ease; }
.sidebar-item:hover, .sidebar-item.active {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white !important;
}

@media (min-width: 768px) {
    .bottom-nav { display: none !important; }
    .mobile-only { display: none !important; }
    .pb-mobile { padding-bottom: 0 !important; }
}
@media (max-width: 767px) {
    .desktop-only { display: none !important; }
    .pb-mobile { padding-bottom: 100px !important; }
}

.prose h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: #1e293b; }
.prose p { margin-bottom: 0.75rem; line-height: 1.7; color: #475569; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 0.75rem; color: #475569; }
.prose li { margin-bottom: 0.25rem; }
