*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;background:#070b0d;color:#eefcf4}body{-webkit-tap-highlight-color:transparent}button,a,input,select,textarea{font:inherit}button{cursor:pointer}button:focus,input:focus,select:focus,textarea:focus{outline:none}button:active{background-image:none!important}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;position:relative;overflow:hidden;background:radial-gradient(circle at 15% 15%,rgba(52,211,153,.12),transparent 30%),radial-gradient(circle at 85% 80%,rgba(139,92,246,.13),transparent 35%),#050708}.auth-glow{position:absolute;width:320px;height:320px;border-radius:50%;filter:blur(80px);opacity:.25}.glow-a{background:#22c55e;top:-120px;left:-80px}.glow-b{background:#8b5cf6;bottom:-120px;right:-80px}.auth-card{position:relative;width:min(470px,100%);padding:34px;border:1px solid rgba(167,243,208,.15);border-radius:30px;background:rgba(10,15,14,.88);box-shadow:0 35px 100px rgba(0,0,0,.6);backdrop-filter:blur(20px)}.auth-logo{display:block;width:100%;border:0;background:transparent;text-align:center;margin-bottom:15px;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.auth-logo img{width:min(100%,390px);height:125px;object-fit:contain;display:block;margin:0 auto}.auth-kicker,.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:900;color:#a78bfa}.auth-card h1{font-size:27px;margin:8px 0}.auth-card p{color:#8d9b94;font-size:13px;line-height:1.6}.auth-card form{display:grid;gap:15px;margin-top:22px}.auth-card label,.form-grid label{display:grid;gap:7px}.auth-card label span,.form-grid label span{font-size:11px;color:#9ca3af;font-weight:800}.auth-card input,.form-grid input,.form-grid select,.form-grid textarea,.date-input{width:100%;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:#0c1110;color:#fff;padding:13px 14px}.auth-card input::placeholder,.form-grid input::placeholder,.form-grid textarea::placeholder{color:#56615d}.premium-btn{border:1px solid transparent;border-radius:14px;padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:900;color:#fff;transition:.2s;box-shadow:0 12px 30px rgba(0,0,0,.18);-webkit-tap-highlight-color:transparent}.premium-btn.primary{background:linear-gradient(135deg,#22c55e,#15803d)}.premium-btn.ghost{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.09)}.premium-btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.auth-message{min-height:20px;text-align:center;margin-top:12px;color:#fca5a5;font-size:12px}.auth-note{display:flex;gap:9px;margin-top:18px;padding:12px;border-radius:13px;background:rgba(139,92,246,.07);border:1px solid rgba(167,139,250,.12);color:#a8b2ad;font-size:11px}.auth-language{text-align:center;margin-top:17px}.language-picker{position:relative;display:inline-block}.language-trigger{min-width:76px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#0c1110;color:#fff;padding:9px 12px;font-weight:800;display:flex;align-items:center;justify-content:space-between;gap:10px;-webkit-tap-highlight-color:transparent}.language-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:100%;padding:6px;border:1px solid rgba(167,139,250,.18);border-radius:13px;background:#0a0f0d;box-shadow:0 18px 45px rgba(0,0,0,.55);display:none;z-index:100}.language-picker.open .language-menu{display:grid}.language-menu button{border:0;border-radius:9px;background:transparent;color:#dce8e1;padding:9px 12px;text-align:left;font-weight:800;-webkit-tap-highlight-color:transparent}.language-menu button:hover,.language-menu button:active,.language-menu button.selected{background:linear-gradient(135deg,rgba(34,197,94,.16),rgba(139,92,246,.18));color:#fff}.auth-language{display:flex;justify-content:center;align-items:center;gap:8px}.auth-language .language-menu{position:fixed;left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);min-width:150px;padding:8px;border-radius:16px;background:rgba(8,12,11,.98);border:1px solid rgba(167,139,250,.28);box-shadow:0 25px 80px rgba(0,0,0,.7);backdrop-filter:blur(20px);z-index:1000}.auth-language .language-menu button{padding:12px 14px;font-size:13px}.teacher-app{min-height:100vh;background:radial-gradient(circle at 75% 5%,rgba(52,211,153,.06),transparent 28%),#070b0d}.teacher-topbar{height:82px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 26px;background:rgba(7,11,13,.88);border-bottom:1px solid rgba(255,255,255,.07);backdrop-filter:blur(18px)}.brand{border:0;background:transparent;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.brand img{width:220px;height:66px;object-fit:contain}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn{width:43px;height:43px;border-radius:13px;border:1px solid rgba(255,255,255,.08);background:#0e1512;color:#d1fae5}.teacher-layout{display:grid;grid-template-columns:255px 1fr;min-height:calc(100vh - 82px)}.teacher-sidebar{border-right:1px solid rgba(255,255,255,.06);padding:22px 15px;background:#090e0d}.teacher-identity{display:flex;gap:11px;align-items:center;padding:12px;margin-bottom:22px;border:1px solid rgba(255,255,255,.06);border-radius:17px;background:rgba(255,255,255,.025)}.avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#22c55e,#8b5cf6);font-weight:900}.teacher-identity strong,.teacher-identity small{display:block}.teacher-identity strong{font-size:12px}.teacher-identity small{color:#7e8a85;font-size:10px;margin-top:3px}.side-item{height:41px;width:100%;display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#7f8a85;padding:12px;border-radius:13px;text-align:left;margin:3px 0;-webkit-tap-highlight-color:transparent}.side-item span{width:27px;text-align:center;color:#a78bfa;font-size:17px}.side-item.active,.side-item:hover{background:linear-gradient(135deg,rgba(34,197,94,.10),rgba(139,92,246,.08));color:#fff}.teacher-main{padding:30px;max-width:1500px;width:100%}.teacher-section{display:none}.teacher-section.active{display:block}.hero-head,.section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}.hero-head h2,.section-head h2{font-size:32px;margin:7px 0}.hero-head p,.section-head p{color:#7e8a85;margin:0;max-width:650px}.status-pill{display:flex;gap:8px;align-items:center;padding:9px 12px;border-radius:999px;background:rgba(34,197,94,.07);border:1px solid rgba(34,197,94,.13);font-size:10px;color:#86efac}.status-pill i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 12px #4ade80}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat-card,.panel,.support-card{border:1px solid rgba(255,255,255,.07);border-radius:20px;background:linear-gradient(145deg,rgba(18,25,23,.96),rgba(8,12,11,.96));box-shadow:0 20px 50px rgba(0,0,0,.18)}.stat-card{padding:19px}.stat-card span{font-size:21px;color:#a78bfa}.stat-card small,.stat-card strong{display:block}.stat-card small{color:#7d8883;margin-top:9px}.stat-card strong{font-size:27px;margin-top:4px}.dashboard-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:15px;margin-top:15px}.panel{padding:22px}.panel-title{display:flex;justify-content:space-between}.panel-title>div{display:flex;align-items:center;gap:10px}.panel-title h3{margin:0;font-size:16px}.panel-icon{color:#a78bfa}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.quick-grid button{min-height:85px;text-align:left;border:1px solid rgba(255,255,255,.07);border-radius:15px;background:rgba(255,255,255,.025);color:#fff;padding:15px;-webkit-tap-highlight-color:transparent}.quick-grid button span{display:block;color:#4ade80;font-size:20px;margin-bottom:8px}.info-list{display:grid;gap:13px;margin-top:15px}.info-list div{padding:12px;border-radius:13px;background:rgba(255,255,255,.025)}.info-list small,.info-list strong{display:block}.info-list small{color:#717c77;font-size:10px}.info-list strong{margin-top:4px}.table-panel{min-height:250px}.empty-state{min-height:210px;display:grid;place-items:center;align-content:center;text-align:center;gap:8px;color:#89948f}.empty-state span{font-size:36px;color:#a78bfa}.empty-state strong{color:#e7eee9}.form-panel{max-width:950px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-bottom:18px}.form-grid .wide{grid-column:1/-1}.form-message{min-height:20px;margin-top:12px;color:#86efac;font-size:12px}.date-input{max-width:180px}.support-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.support-card{padding:25px;text-decoration:none;color:#fff}.support-card span{font-size:25px;color:#a78bfa}.support-card strong,.support-card small{display:block}.support-card strong{margin-top:13px}.support-card small{color:#78847f;margin-top:5px}.teacher-footer{padding:50px 25px;text-align:center;background:#030505;border-top:1px solid rgba(255,255,255,.07)}.footer-brand img{width:230px;height:75px;object-fit:contain}.teacher-footer p{color:#7f8a85;font-size:12px}.socials,.creator{display:flex;justify-content:center;gap:9px;margin-top:17px}.socials a,.creator a{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.08);border-radius:12px;color:#d1fae5;background:#0b100e;text-decoration:none}.creator{align-items:center;color:#6f7b76;font-size:11px}.creator a{width:32px;height:32px}.refresh-teacher-btn.is-refreshing{animation:teacherRefreshSpin .8s linear infinite;pointer-events:none}@keyframes teacherRefreshSpin{to{transform:rotate(360deg)}}.hidden{display:none!important}@media(max-width:950px){.teacher-layout{grid-template-columns:1fr}.teacher-sidebar{position:sticky;top:82px;z-index:10;display:flex;overflow:auto;border-right:0;border-bottom:1px solid rgba(255,255,255,.06);padding:9px}.teacher-identity{display:none}.teacher-sidebar nav{display:flex;min-width:max-content}.side-item{width:auto}.side-item b{font-size:11px}.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:600px){.auth-logo img{width:min(100%,350px);height:115px}.teacher-topbar{padding:0 12px;height:72px}.brand img{width:180px;height:58px}.teacher-layout{min-height:calc(100vh - 72px)}.teacher-main{padding:20px 13px}.hero-head,.section-head{display:block}.status-pill{display:inline-flex;margin-top:14px}.section-head .premium-btn,.section-head .date-input{margin-top:13px}.hero-head h2,.section-head h2{font-size:25px}.stat-grid{gap:9px}.stat-card{padding:14px}.stat-card strong{font-size:22px}.quick-grid,.form-grid,.support-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.teacher-footer{padding:35px 15px}.auth-card{padding:25px 18px}.auth-logo img{width:220px;height:70px}}
/* TEACHER PANEL LOGO — LARGE, STARTING AT SCREEN TOP */
.teacher-topbar{
    height:82px !important;
    align-items:flex-start !important;
}
.teacher-topbar .brand{
    height:82px !important;
    display:flex !important;
    align-items:flex-start !important;
}
.teacher-topbar .brand img{
    width:280px !important;
    height:82px !important;
    object-fit:contain !important;
    display:block !important;
}
@media (max-width:520px){
    .teacher-topbar{
        height:72px !important;
    }
    .teacher-topbar .brand{
        height:72px !important;
    }
    .teacher-topbar .brand img{
        width:230px !important;
        height:72px !important;
    }
}

/* RESTORE TEACHER PANEL LOGO */
.teacher-topbar{
    height:82px !important;
    align-items:center !important;
}
.teacher-topbar .brand{
    height:auto !important;
    display:block !important;
}
.teacher-topbar .brand img{
    width:220px !important;
    height:66px !important;
    object-fit:contain !important;
}
@media (max-width:520px){
    .teacher-topbar{
        height:72px !important;
    }
    .teacher-topbar .brand{
        height:auto !important;
    }
    .teacher-topbar .brand img{
        width:180px !important;
        height:58px !important;
    }
}

/* DASHBOARD INTRO — NO WHITE BACKGROUND, BOLD ONLY */
.hero-head .dashboard-intro{
    background:transparent !important;
    color:#7e8a85 !important;
    font-weight:900 !important;
    padding:0 !important;
    border-radius:0 !important;
}


/* TEACHER SECTIONS — BIR XIL KONTENT BLOKI */
#section-students > .table-panel,
#section-attendance > .table-panel,
#section-grades > .form-panel,
#section-courses > .panel,
#section-support > .support-grid{
    min-height:300px !important;
}

@media (max-width:600px){
    #section-students > .table-panel,
    #section-attendance > .table-panel,
    #section-grades > .form-panel,
    #section-courses > .panel,
    #section-support > .support-grid{
        min-height:260px !important;
    }
}


/* TELEFONDA BARCHA BO'LIMLAR — AYNAN BIR XIL BLOK */
@media (max-width:600px){
    #section-students > .table-panel,
    #section-attendance > .table-panel,
    #section-grades > .form-panel,
    #section-courses > .panel,
    #section-support > .support-grid{
        height:420px !important;
        min-height:420px !important;
        overflow:auto !important;
    }
}

/* PREMIUM AKHSIKENT AI NAV ICON */
.ai-side-item .ai-nav-icon{width:27px;height:17px;display:grid;place-items:center;border-radius:9px;color:#e9ddff;background:linear-gradient(145deg,rgba(167,139,250,.22),rgba(34,197,94,.12));border:1px solid rgba(167,139,250,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 18px rgba(139,92,246,.10);}
.ai-side-item .ai-nav-icon svg{width:17px;height:17px;display:block;filter:drop-shadow(0 0 5px rgba(167,139,250,.45));}
.ai-side-item.active .ai-nav-icon,.ai-side-item:hover .ai-nav-icon{color:#fff;background:linear-gradient(145deg,rgba(167,139,250,.34),rgba(34,197,94,.18));border-color:rgba(196,181,253,.45);box-shadow:0 0 20px rgba(139,92,246,.18),inset 0 1px 0 rgba(255,255,255,.12);}

.password-wrap{position:relative;display:flex;align-items:center}.password-wrap input{padding-right:48px}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#9ca3af;display:grid;place-items:center;font-size:18px;cursor:pointer;-webkit-tap-highlight-color:transparent}.password-toggle:hover{color:#fff;background:rgba(255,255,255,.05)}
/* Teacher students + lesson picker polish */
.multi-student-picker{display:grid;gap:6px;max-height:210px;overflow:auto;padding:7px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:#0c1110}
.multi-student-option,.multi-student-all{display:flex;align-items:center;gap:9px;min-height:34px;padding:7px 9px;border-radius:9px;color:#dce8e1;font-size:12px;font-weight:700;cursor:pointer}
.multi-student-option:hover,.multi-student-all:hover{background:rgba(255,255,255,.045)}
.multi-student-option input,.multi-student-all input{accent-color:#22c55e;width:15px;height:15px;margin:0}
.multi-student-all{border-bottom:1px solid rgba(255,255,255,.07);color:#86efac;margin-bottom:2px}
.student-table{display:grid;gap:7px}
.student-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid rgba(255,255,255,.055);border-radius:13px;background:rgba(255,255,255,.022)}
.student-row strong{display:block;font-size:13px;line-height:1.3;color:#eefcf4}
.student-row small{display:block;margin-top:3px;font-size:10px;color:#73807a}
.subject-tag{flex:0 0 auto;padding:5px 8px;border-radius:999px;border:1px solid rgba(167,139,250,.16);background:rgba(167,139,250,.07);color:#c4b5fd;font-size:9px;font-weight:800}
.password-toggle{width:38px;height:38px;border-radius:11px;color:#a78bfa;background:rgba(167,139,250,.07);border:1px solid rgba(167,139,250,.16);font-size:0;transition:.18s}
.password-toggle:hover{color:#fff;background:rgba(167,139,250,.15);border-color:rgba(196,181,253,.35)}
.password-toggle svg{width:19px;height:19px;display:block}

/* Teacher ↔ Student homework integration */
.homework-management-panel,.homework-submissions-panel{max-width:1100px;margin-top:18px}.teacher-homework-list{display:grid;gap:10px;margin-top:16px}.teacher-homework-list small{display:block;color:#7e8a85;margin-top:4px}.teacher-homework-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:15px;border:1px solid rgba(255,255,255,.07);border-radius:15px;background:rgba(255,255,255,.025)}.submission-grade-box{display:grid;grid-template-columns:90px minmax(140px,1fr) auto;gap:8px;align-items:center}.submission-grade-box input{border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#0c1110;color:#fff;padding:10px;min-width:0}@media(max-width:800px){.teacher-homework-row{align-items:flex-start;flex-direction:column;width:100%}.submission-grade-box{width:100%;grid-template-columns:1fr}.submission-grade-box .premium-btn{width:100%}}


/* =========================
   TEST MODE NOTICE
========================= */
.test-mode-banner{position:relative;width:100%;max-width:100%;height:34px;overflow:hidden;background:rgba(255,255,255,.72);border-bottom:1px solid rgba(15,23,42,.07);backdrop-filter:blur(10px);pointer-events:none}
.test-mode-track{width:max-content;height:100%;display:flex;align-items:center;white-space:nowrap;animation:testModeMarquee 24s linear infinite;will-change:transform}
.test-mode-text{font-size:13px;font-weight:950;color:#9d174d;letter-spacing:.04em;padding-right:70px}
@keyframes testModeMarquee{from{transform:translateX(100vw)}to{transform:translateX(-100%)}}
@media(max-width:760px){html,body{max-width:100%;overflow-x:hidden}.test-mode-banner{width:100%;max-width:100%}}

/* ASSIGNED STUDENT TESTS */
.assigned-tests-list{display:grid;gap:10px}
.assigned-test-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid rgba(34,197,94,.14);border-radius:14px;background:rgba(255,255,255,.025)}
.assigned-test-main{min-width:0;display:flex;flex-direction:column;gap:5px}
.assigned-test-main strong{color:#f8fafc;font-size:14px}
.assigned-test-main small,.assigned-test-meta small{color:#94a3b8;font-size:12px}
.assigned-test-meta{display:flex;align-items:flex-end;flex-direction:column;gap:5px;white-space:nowrap}
.assigned-test-meta span{color:#86efac;font-size:12px;font-weight:800}
@media(max-width:650px){.assigned-test-row{align-items:flex-start;flex-direction:column}.assigned-test-meta{align-items:flex-start}}

.assigned-tests-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.premium-btn.danger{border-color:rgba(239,68,68,.35);color:#fca5a5}.assigned-tests-select-all{display:flex;align-items:center;gap:8px;margin:12px 0;color:#cbd5e1;font-size:12px;font-weight:800}.assigned-test-row{cursor:pointer}.assigned-test-row>input{width:18px;height:18px;accent-color:#22c55e;flex:0 0 auto}.assigned-test-row .assigned-test-main{flex:1}.assigned-test-row:has(.assigned-test-check:checked){border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.06)}
