/* ══════════════════════════════════════════════════════════
   iPixar Academy LMS — Liquid Glass Apple-Dark Theme
   ══════════════════════════════════════════════════════════ */

:root {
    --background: 0 0% 0%;
    --foreground: 0 0% 100%;
    --primary: 0 0% 100%;
    --primary-foreground: 213 45% 67%;
    --border: 0 0% 100% / 0.2;
    --radius: 9999px;
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Barlow', sans-serif;

    --accent-green: #00e676;
    --accent-red: #ff4444;
    --accent-blue: #5eaaff;

    --sidebar-width: 320px;
    --topbar-height: 64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ══════════════════════════════════════════════════════════
   LIQUID GLASS
   ══════════════════════════════════════════════════════════ */

.liquid-glass {
    background: rgba(255,255,255,0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.liquid-glass-strong {
    background: rgba(255,255,255,0.03);
    background-blend-mode: luminosity;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: none;
    box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.liquid-glass-strong::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.2) 80%, rgba(255,255,255,0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   LOGIN SCREEN
   ══════════════════════════════════════════════════════════ */

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: loginGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes loginGlow {
    0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

.login-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 460px;
    padding: 56px 48px;
    border-radius: 24px;
    text-align: center;
    animation: cardIn 0.8s cubic-bezier(0.16,1,0.3,1);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-family: var(--font-heading); font-style: italic;
    font-size: 2rem; margin-bottom: 12px; color: #fff;
}

.login-logo .logo-accent { color: rgba(255,255,255,0.5); }

.login-subtitle {
    font-family: var(--font-body); font-weight: 300;
    font-size: 0.875rem; color: rgba(255,255,255,0.5);
    margin-bottom: 40px; line-height: 1.6;
}

.login-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 18px; border-radius: 9999px;
    font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
    color: rgba(255,255,255,0.7); margin-bottom: 32px;
}

.google-signin-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 14px 32px; border-radius: 9999px;
    background: #fff; color: #000;
    font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
    transition: all 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.google-signin-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.1); }
.google-signin-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.login-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.login-footer a { color: rgba(255,255,255,0.4); font-size: 0.8rem; font-weight: 400; font-family: var(--font-body); transition: color 0.3s; }
.login-footer a:hover { color: rgba(255,255,255,0.7); }

.login-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }

.login-feature {
    padding: 14px; border-radius: 16px; text-align: center;
}

.login-feature-icon { font-size: 1.5rem; margin-bottom: 4px; }
.login-feature-text { font-size: 0.7rem; color: rgba(255,255,255,0.4); font-weight: 400; font-family: var(--font-body); }

/* Access Denied */
.denied-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,68,68,0.08); border: 1px solid rgba(255,68,68,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 24px;
}

.denied-email {
    display: inline-block; padding: 6px 16px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; font-family: monospace; font-size: 0.85rem;
    color: var(--accent-red); margin: 12px 0 24px;
}

/* ══════════════════════════════════════════════════════════
   LMS APP / TOPBAR
   ══════════════════════════════════════════════════════════ */

.lms-app { display: none; min-height: 100vh; background: #000; }
.lms-app.active { display: block; }

.lms-topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 100; display: flex; align-items: center;
    justify-content: space-between; padding: 0 24px;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-style: italic;
    font-size: 1.3rem; color: #fff;
}
.topbar-logo .logo-accent { color: rgba(255,255,255,0.5); }
.topbar-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.1); }
.topbar-label { font-size: 0.72rem; color: rgba(255,255,255,0.35); font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-body); }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-nav-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 9999px;
    font-size: 0.8rem; font-weight: 500; font-family: var(--font-body);
    color: rgba(255,255,255,0.6); transition: all 0.3s;
}

.topbar-nav-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.topbar-nav-btn.active { background: rgba(255,255,255,0.08); color: #fff; }
.topbar-nav-btn svg { width: 15px; height: 15px; }

.user-menu {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 4px 4px; border-radius: 9999px;
    cursor: pointer; transition: all 0.3s;
}
.user-menu:hover { background: rgba(255,255,255,0.05); }

.user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body); font-weight: 500; font-size: 0.8rem;
    color: #fff; flex-shrink: 0; overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-name { font-size: 0.82rem; font-weight: 400; color: rgba(255,255,255,0.7); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-body); }

.user-dropdown {
    position: absolute; top: calc(var(--topbar-height) - 4px); right: 24px;
    width: 220px; border-radius: 16px; padding: 8px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.5); display: none; z-index: 200;
    animation: dropIn 0.2s cubic-bezier(0.16,1,0.3,1);
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.user-dropdown.show { display: block; }
.user-dropdown .dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    font-size: 0.82rem; font-family: var(--font-body); font-weight: 300;
    color: rgba(255,255,255,0.6); transition: all 0.2s; width: 100%; text-align: left;
}
.user-dropdown .dropdown-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.user-dropdown .dropdown-item svg { width: 15px; height: 15px; opacity: 0.5; }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 0; }

.sidebar-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; font-size: 1.2rem; color: rgba(255,255,255,0.5); transition: all 0.3s; }
.sidebar-toggle:hover { color: #fff; }

.lms-main { padding-top: var(--topbar-height); min-height: 100vh; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════ */

.dashboard-view { padding: 40px 32px; max-width: 1400px; margin: 0 auto; display: none; }
.dashboard-view.active { display: block; animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1); }

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); filter:blur(4px); } to { opacity:1; transform:translateY(0); filter:blur(0); } }

.welcome-greeting {
    font-family: var(--font-heading); font-style: italic;
    font-size: 2rem; color: #fff; letter-spacing: -1px; line-height: 0.9; margin-bottom: 6px;
}
.welcome-greeting span { color: rgba(255,255,255,0.5); }
.welcome-sub { color: rgba(255,255,255,0.35); font-size: 0.875rem; font-weight: 300; font-family: var(--font-body); }
.dashboard-welcome { margin-bottom: 40px; }

.dashboard-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 40px; }

.dash-stat-card {
    padding: 24px; border-radius: 16px; transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.dash-stat-card:hover { transform: translateY(-3px); }
.dash-stat-icon { font-size: 1.3rem; margin-bottom: 14px; }
.dash-stat-value { font-family: var(--font-heading); font-style: italic; font-size: 2rem; color: #fff; letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.dash-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.35); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-body); }

.dashboard-section-title {
    font-family: var(--font-heading); font-style: italic;
    font-size: 1.3rem; color: #fff; margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
}
.dashboard-section-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }

/* Course Cards */
.courses-grid-lms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 18px; margin-bottom: 40px; }

.course-card-lms {
    border-radius: 16px; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1); cursor: pointer;
}
.course-card-lms:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(255,255,255,0.03); }

.course-card-header { padding: 24px 24px 0; display: flex; align-items: flex-start; gap: 16px; }
.course-card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0; transition: all 0.3s;
}
.course-card-lms:hover .course-card-icon { transform: scale(1.05); }
.course-card-info { flex: 1; min-width: 0; }
.course-card-title { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: #fff; margin-bottom: 4px; letter-spacing: -0.5px; }
.course-card-meta { display: flex; gap: 12px; font-size: 0.72rem; color: rgba(255,255,255,0.35); font-family: var(--font-body); font-weight: 300; }
.course-card-meta span { display: flex; align-items: center; gap: 4px; }

.course-card-body { padding: 16px 24px; }
.course-card-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); font-weight: 300; font-family: var(--font-body); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.course-progress-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.course-progress-fill { height: 100%; border-radius: 2px; background: #fff; transition: width 0.6s; width: 0%; }
.course-progress-text { font-size: 0.68rem; color: rgba(255,255,255,0.3); font-weight: 400; font-family: var(--font-body); }

.course-card-footer { padding: 12px 24px 20px; display: flex; align-items: center; justify-content: space-between; }
.course-card-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 18px; border-radius: 9999px;
    font-size: 0.78rem; font-weight: 500; font-family: var(--font-body);
    background: #fff; color: #000; transition: all 0.3s;
}
.course-card-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,255,255,0.1); }
.course-card-btn svg { width: 13px; height: 13px; }
.course-card-lessons-count { font-size: 0.75rem; color: rgba(255,255,255,0.3); font-family: var(--font-body); font-weight: 300; }

/* ══════════════════════════════════════════════════════════
   COURSE VIEWER
   ══════════════════════════════════════════════════════════ */

.course-view { display: none; height: calc(100vh - var(--topbar-height)); }
.course-view.active { display: flex; animation: fadeUp 0.4s cubic-bezier(0.16,1,0.3,1); }

.course-sidebar {
    width: var(--sidebar-width); height: 100%;
    background: rgba(0,0,0,0.95); border-right: 1px solid rgba(255,255,255,0.06);
    overflow-y: auto; flex-shrink: 0; display: flex; flex-direction: column;
}

.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; background: rgba(0,0,0,0.95); z-index: 10; }

.sidebar-back-btn {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: rgba(255,255,255,0.4); font-weight: 400;
    font-family: var(--font-body); margin-bottom: 16px; padding: 6px 12px;
    border-radius: 8px; transition: all 0.2s;
}
.sidebar-back-btn:hover { background: rgba(255,255,255,0.04); color: #fff; }
.sidebar-back-btn svg { width: 15px; height: 15px; }

.sidebar-course-title { font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; color: #fff; margin-bottom: 10px; letter-spacing: -0.5px; }
.sidebar-course-progress { display: flex; align-items: center; gap: 10px; }
.sidebar-progress-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.sidebar-progress-fill { height: 100%; background: var(--accent-green); border-radius: 2px; transition: width 0.5s; }
.sidebar-progress-text { font-size: 0.68rem; color: rgba(255,255,255,0.35); font-weight: 500; font-family: var(--font-body); flex-shrink: 0; }

.chapters-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.chapter { border-bottom: 1px solid rgba(255,255,255,0.04); }

.chapter-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; cursor: pointer; transition: all 0.2s; width: 100%; text-align: left;
}
.chapter-header:hover { background: rgba(255,255,255,0.03); }

.chapter-header-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chapter-number { font-family: var(--font-body); font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.4); width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chapter-title { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-toggle { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.chapter.open .chapter-toggle { transform: rotate(180deg); }
.chapter-lessons { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.chapter.open .chapter-lessons { max-height: 600px; }

.lesson-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px 10px 54px; cursor: pointer; transition: all 0.2s; width: 100%; text-align: left;
}
.lesson-item:hover { background: rgba(255,255,255,0.03); }
.lesson-item.active { background: rgba(255,255,255,0.06); border-right: 2px solid #fff; }
.lesson-item.completed .lesson-status { background: var(--accent-green); border-color: var(--accent-green); }
.lesson-item.completed .lesson-status::after { content: '✓'; color: #000; font-size: 0.55rem; font-weight: 700; }

.lesson-status { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.15); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.lesson-item.active .lesson-status { border-color: #fff; }
.lesson-item.active .lesson-status::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; }

.lesson-info { flex: 1; min-width: 0; }
.lesson-title-text { font-size: 0.78rem; font-weight: 400; font-family: var(--font-body); color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.lesson-item.active .lesson-title-text { color: #fff; font-weight: 500; }
.lesson-duration { font-size: 0.65rem; color: rgba(255,255,255,0.2); margin-top: 2px; font-family: var(--font-body); }

/* Video Area */
.course-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; background: #000; }
.video-container { position: relative; width: 100%; background: #000; aspect-ratio: 16/9; flex-shrink: 0; }
.video-container iframe { width: 100%; height: 100%; border: none; }

.video-placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px; background: #050508;
}
.video-placeholder-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.video-placeholder p { color: rgba(255,255,255,0.3); font-size: 0.85rem; font-family: var(--font-body); font-weight: 300; }

.lesson-details { padding: 32px; flex: 1; }
.lesson-details-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.lesson-details-title { font-family: var(--font-heading); font-style: italic; font-size: 1.5rem; color: #fff; letter-spacing: -1px; }

.lesson-mark-complete {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 20px; border-radius: 9999px;
    font-size: 0.78rem; font-weight: 500; font-family: var(--font-body);
    transition: all 0.3s; flex-shrink: 0;
}
.lesson-mark-complete:hover { background: rgba(255,255,255,0.06); color: #fff; }
.lesson-mark-complete.completed { background: rgba(0,230,118,0.1); color: var(--accent-green); }
.lesson-mark-complete svg { width: 15px; height: 15px; }

.lesson-details-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); font-weight: 300; font-family: var(--font-body); line-height: 1.7; margin-bottom: 24px; }

.lesson-nav { display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.lesson-nav-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 9999px;
    font-size: 0.82rem; font-weight: 500; font-family: var(--font-body);
    color: rgba(255,255,255,0.6); transition: all 0.3s;
}
.lesson-nav-btn:hover { color: #fff; transform: translateY(-1px); }
.lesson-nav-btn.primary { background: #fff; color: #000; }
.lesson-nav-btn.primary:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.1); }
.lesson-nav-btn svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════ */

.admin-view { padding: 40px 32px; max-width: 1200px; margin: 0 auto; display: none; }
.admin-view.active { display: block; animation: fadeUp 0.4s cubic-bezier(0.16,1,0.3,1); }

.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-title { font-family: var(--font-heading); font-style: italic; font-size: 1.8rem; color: #fff; letter-spacing: -1px; }
.admin-title span { color: rgba(255,255,255,0.5); }

.admin-tabs {
    display: flex; gap: 4px; padding: 4px;
    border-radius: 14px; margin-bottom: 32px;
}
.admin-tab {
    flex: 1; padding: 11px 20px; border-radius: 10px;
    font-size: 0.82rem; font-weight: 500; font-family: var(--font-body);
    color: rgba(255,255,255,0.4); transition: all 0.3s; text-align: center;
}
.admin-tab:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.03); }
.admin-tab.active { background: rgba(255,255,255,0.08); color: #fff; }

.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeUp 0.3s cubic-bezier(0.16,1,0.3,1); }

.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-section-title { font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; color: #fff; }

.admin-add-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 20px; border-radius: 9999px;
    background: #fff; color: #000;
    font-size: 0.78rem; font-weight: 600; font-family: var(--font-body);
    transition: all 0.3s;
}
.admin-add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,255,255,0.1); }
.admin-add-btn svg { width: 15px; height: 15px; }

.admin-table-wrap { border-radius: 16px; overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    padding: 14px 20px; text-align: left;
    font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06); font-family: var(--font-body);
}
.admin-table td { padding: 14px 20px; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; font-family: var(--font-body); font-weight: 300; color: rgba(255,255,255,0.7); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table .email-cell { font-family: monospace; font-size: 0.8rem; color: var(--accent-blue); }
.admin-table .courses-cell { display: flex; flex-wrap: wrap; gap: 4px; }

.course-tag {
    display: inline-block; padding: 3px 10px; border-radius: 9999px;
    font-size: 0.65rem; font-weight: 500; font-family: var(--font-body);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-action-btn { padding: 5px 12px; border-radius: 8px; font-size: 0.72rem; font-weight: 400; font-family: var(--font-body); transition: all 0.2s; margin-right: 5px; }
.admin-action-btn.edit { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.08); }
.admin-action-btn.edit:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-action-btn.delete { background: rgba(255,68,68,0.06); color: var(--accent-red); border: 1px solid rgba(255,68,68,0.12); }
.admin-action-btn.delete:hover { background: rgba(255,68,68,0.12); }

/* Export Section */
.admin-export-section { margin-top: 32px; padding: 24px; border-radius: 16px; }
.export-title { font-family: var(--font-heading); font-style: italic; font-size: 1rem; color: #fff; margin-bottom: 12px; }
.export-desc { font-size: 0.82rem; color: rgba(255,255,255,0.4); font-weight: 300; font-family: var(--font-body); margin-bottom: 16px; }
.export-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.show { display: flex; animation: modalFade 0.3s; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal {
    width: 100%; max-width: 560px; max-height: 80vh;
    border-radius: 20px; overflow: hidden;
    animation: modalSlide 0.3s cubic-bezier(0.34,1.56,0.64,1);
    display: flex; flex-direction: column;
}
@keyframes modalSlide { from { opacity:0; transform:translateY(20px) scale(0.96); } to { opacity:1; transform:translateY(0) scale(1); } }

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.modal-title { font-family: var(--font-heading); font-style: italic; font-size: 1.2rem; color: #fff; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: rgba(255,255,255,0.4); transition: all 0.2s; }
.modal-close:hover { background: rgba(255,255,255,0.06); color: #fff; }

.modal-body { padding: 28px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 20px 28px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; gap: 12px; justify-content: flex-end; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.5); margin-bottom: 8px; font-family: var(--font-body); }
.form-input {
    width: 100%; padding: 11px 16px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; color: #fff; font-size: 0.875rem; font-family: var(--font-body); font-weight: 300;
    transition: all 0.3s; outline: none;
}
.form-input:focus { border-color: rgba(255,255,255,0.25); box-shadow: 0 0 0 3px rgba(255,255,255,0.04); }
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}

.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 9999px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem; font-family: var(--font-body); font-weight: 400;
    cursor: pointer; transition: all 0.2s; user-select: none; color: rgba(255,255,255,0.6);
}
.checkbox-label:hover { border-color: rgba(255,255,255,0.15); }
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-label.checked { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }

.form-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 9999px;
    font-size: 0.85rem; font-weight: 500; font-family: var(--font-body); transition: all 0.3s;
}
.form-btn.primary { background: #fff; color: #000; }
.form-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,255,255,0.1); }
.form-btn.secondary { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.form-btn.secondary:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ══════════════════════════════════════════════════════════
   TOAST / MISC
   ══════════════════════════════════════════════════════════ */

.toast {
    position: fixed; bottom: 24px; right: 24px;
    padding: 12px 22px; border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    font-size: 0.85rem; font-weight: 400; font-family: var(--font-body);
    color: #fff; z-index: 1000; display: flex; align-items: center; gap: 10px;
    transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1rem; }

.empty-state { text-align: center; padding: 64px 24px; }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state-title { font-family: var(--font-heading); font-style: italic; font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.empty-state-desc { color: rgba(255,255,255,0.35); font-size: 0.85rem; font-family: var(--font-body); font-weight: 300; }

.spinner { width: 28px; height: 28px; border: 2px solid rgba(255,255,255,0.08); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay { position: fixed; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; z-index: 9999; transition: opacity 0.4s; }
.loading-overlay.fade-out { opacity: 0; pointer-events: none; }
.loading-text { font-family: var(--font-body); font-size: 0.85rem; color: rgba(255,255,255,0.35); font-weight: 300; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .dashboard-stats { grid-template-columns: repeat(2,1fr); }
    .courses-grid-lms { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
    .course-view.active { flex-direction: column; }
    .course-sidebar { width: 100%; height: auto; max-height: 40vh; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

@media (max-width: 768px) {
    .lms-topbar { padding: 0 16px; }
    .topbar-label, .topbar-divider { display: none; }
    .topbar-nav-btn span { display: none; }
    .user-name { display: none; }
    .sidebar-toggle { display: flex; }
    .dashboard-view, .admin-view { padding: 24px 16px; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dash-stat-card { padding: 18px; }
    .dash-stat-value { font-size: 1.5rem; }
    .courses-grid-lms { grid-template-columns: 1fr; }
    .welcome-greeting { font-size: 1.5rem; }
    .course-sidebar { position: fixed; top: var(--topbar-height); left: 0; right: 0; bottom: 0; z-index: 50; width: 100%; max-height: none; transform: translateX(-100%); transition: transform 0.3s; }
    .course-sidebar.mobile-open { transform: translateX(0); }
    .lesson-details { padding: 20px 16px; }
    .lesson-details-header { flex-direction: column; }
    .lesson-nav { flex-direction: column; }
    .lesson-nav-btn { justify-content: center; }
    .admin-tabs { flex-direction: column; }
    .admin-table-wrap { overflow-x: auto; }
    .admin-table { min-width: 600px; }
    .login-card { padding: 40px 28px; }
    .login-features { grid-template-columns: 1fr; }
    .modal { max-height: 90vh; border-radius: 16px; }
}

@media (max-width: 480px) {
    .dashboard-stats { grid-template-columns: 1fr; }
    .login-card { padding: 32px 20px; }
    .login-logo { font-size: 1.6rem; }
}
