*{margin:0;padding:0;box-sizing:border-box;font-family:Inter,sans-serif}:root{--bg: #f5f8fc;--panel: #ffffff;--panel-soft: #f8fbff;--text: #0f172a;--muted: #64748b;--line: #e2e8f0;--shadow: 0 18px 45px rgba(15, 23, 42, .08);--brand: linear-gradient(135deg, #0b5fc9 0%, #12c8b6 100%);--brand-dark: linear-gradient(135deg, #094da7 0%, #0d9f94 100%)}body{background:var(--bg);color:var(--text)}button,input,select{font:inherit}button:disabled{cursor:not-allowed;opacity:.65}.layout{display:flex;min-height:100vh}.sidebar{width:270px;background:var(--panel);border-right:1px solid var(--line);padding:28px;display:flex;flex-direction:column}.logo,.brand-badge{width:54px;height:54px;border-radius:18px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;box-shadow:var(--shadow)}.brand-badge.small{width:44px;height:44px;border-radius:14px;font-size:16px}.sidebar h1{font-size:28px;margin-top:18px}.sidebar-subtitle{margin-top:8px;color:var(--muted);font-size:14px}.menu{margin-top:40px;display:flex;flex-direction:column;gap:10px}.menu button{border:none;background:transparent;padding:15px;border-radius:16px;cursor:pointer;text-align:left;transition:.2s;font-size:15px;color:var(--text)}.menu button:hover{background:#f1f5f9}.menu-active{background:var(--brand)!important;color:#fff!important;box-shadow:var(--shadow)}.menu-divider{height:1px;background:var(--line);margin:10px 4px 4px}.sidebar-logout{width:100%}.logout{border:1px solid #fecaca;background:linear-gradient(180deg,#fff,#fff5f5);color:#b91c1c;padding:14px 15px;border-radius:16px;cursor:pointer;font-weight:700;display:flex;align-items:center;justify-content:space-between;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.logout:hover,.logout:focus-visible{background:#fee2e2;box-shadow:0 14px 30px #b91c1c2e;transform:translateY(-1px);outline:none}.logout-arrow{width:28px;height:28px;border-radius:999px;background:#fee2e2;display:inline-flex;align-items:center;justify-content:center;color:#991b1b}.main{flex:1;padding:40px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}.topbar h2{font-size:34px;line-height:1.1}.topbar p{margin-top:8px;color:var(--muted)}.topbar-admin{align-items:flex-start}.topbar-actions{display:flex;gap:12px;flex-wrap:wrap}.section-actions-row{display:flex;justify-content:flex-end;margin-bottom:22px}.primary-btn{border:none;background:var(--brand);color:#fff;padding:14px 22px;border-radius:14px;cursor:pointer;font-weight:600;box-shadow:var(--shadow)}.secondary-btn{border:none;background:#e2e8f0;color:var(--text);padding:12px 16px;border-radius:12px;cursor:pointer;font-weight:600}.secondary-top-btn{border:1px solid var(--line);background:#fff;color:var(--text);padding:12px 16px;border-radius:14px;cursor:pointer;font-weight:600}.danger-btn{border:none;background:#ef4444;color:#fff;padding:12px 16px;border-radius:12px;cursor:pointer;font-weight:600}.exam-view-btn{background:var(--brand-dark);min-width:140px;padding:10px 14px}.question-btn{width:100%;border:none;cursor:pointer;padding:12px 14px;border-radius:14px;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:space-between;background:var(--brand);box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease;font-size:14px}.question-btn:hover{transform:translateY(-1px);box-shadow:0 22px 48px #0f172a29}.question-btn-arrow{width:24px;height:24px;border-radius:999px;background:#ffffff2e;display:inline-flex;align-items:center;justify-content:center}.question-btn-inline{width:auto;min-width:120px;padding:10px 14px;display:inline-flex}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-bottom:30px}.card{background:var(--panel);padding:28px;border-radius:24px;border:1px solid var(--line);box-shadow:0 8px 24px #0f172a0a}.card span{color:var(--muted);font-size:14px}.card h3{margin-top:18px;font-size:36px}.table-box{background:var(--panel);border-radius:24px;padding:30px;border:1px solid var(--line);box-shadow:0 8px 24px #0f172a0a}.section-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.section-header input{border:1px solid var(--line);background:#f8fafc;padding:14px 18px;border-radius:14px;width:260px;outline:none}table{width:100%;border-collapse:collapse}th,td{padding:18px;text-align:left;border-top:1px solid var(--line);vertical-align:middle}th{color:var(--muted);font-size:14px;font-weight:600}.action-cell{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.course-card{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 8px 24px #0f172a0a}.course-card h3{font-size:22px}.course-actions{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap}.exam-category-wrapper{display:flex;flex-direction:column;gap:30px}.exam-category{background:var(--panel);border-radius:24px;padding:28px;border:1px solid var(--line);box-shadow:0 8px 24px #0f172a0a}.exam-category-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}.exam-category-header h3{font-size:24px}.exam-category-header span{background:#f1f5f9;padding:8px 14px;border-radius:999px;font-size:13px;color:var(--muted)}.section-kicker,.exam-label{font-size:12px;text-transform:uppercase;letter-spacing:.18em;color:var(--muted);margin-bottom:6px}.exam-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.exam-card{background:var(--panel-soft);border-radius:20px;padding:24px;border:1px solid #edf2f7}.exam-top{display:flex;justify-content:space-between;margin-bottom:20px}.exam-top h3{font-size:20px}.auth-shell{min-height:100vh;background:radial-gradient(circle at top left,rgba(18,200,182,.14),transparent 35%),radial-gradient(circle at top right,rgba(11,95,201,.14),transparent 38%),var(--bg);padding:36px}.auth-centered{display:flex;align-items:center;justify-content:center}.auth-hero{max-width:760px;margin-bottom:28px}.auth-hero h1{font-size:52px;line-height:1.04;margin-top:18px;max-width:700px}.auth-hero p{margin-top:16px;max-width:620px;color:var(--muted);font-size:18px;line-height:1.65}.auth-card-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:18px;max-width:820px}.auth-card{text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow);cursor:pointer;transition:.2s ease}.auth-card:hover{transform:translateY(-2px)}.auth-card-icon{width:52px;height:52px;border-radius:18px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;margin-bottom:18px}.auth-card h2{font-size:24px;margin-bottom:10px}.auth-card p{color:var(--muted);line-height:1.6}.login-panel{width:min(460px,100%);background:var(--panel);border:1px solid var(--line);border-radius:30px;padding:28px;box-shadow:var(--shadow)}.back-link{border:none;background:transparent;color:var(--text);font-weight:600;cursor:pointer;margin-bottom:18px}.login-header h2{font-size:34px;margin-top:18px}.login-header p{margin-top:10px;color:var(--muted);line-height:1.6}.login-form{display:flex;flex-direction:column;gap:14px;margin-top:20px}.login-form input{border:1px solid var(--line);background:#f8fafc;padding:14px 16px;border-radius:14px;outline:none}.auth-submit{width:100%;margin-top:4px}.auth-hint{margin-top:16px;color:var(--muted);font-size:14px;line-height:1.6}.auth-hint.subtle{margin-top:10px;opacity:.9}.error-banner{margin-top:16px;background:#fee2e2;color:#991b1b;padding:14px 16px;border-radius:14px;font-weight:600}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:50}.modal{background:#fff;padding:30px;border-radius:24px;width:400px;display:flex;flex-direction:column;gap:16px;box-shadow:var(--shadow)}.modal-wide{width:min(760px,96vw)}.question-modal{max-height:min(680px,calc(100vh - 48px));overflow:hidden}.question-modal .modal-head{flex:0 0 auto;padding-bottom:14px;border-bottom:1px solid var(--line)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.modal-head p{color:var(--muted);margin-top:6px}.close-btn{border:none;background:#f1f5f9;width:42px;height:42px;border-radius:12px;cursor:pointer;font-size:18px}.modal input,.modal-select{border:1px solid var(--line);background:#f8fafc;padding:14px;border-radius:12px;outline:none}.modal-actions{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap}.modal-note{font-size:14px;color:var(--muted);line-height:1.6;background:#f8fafc;border:1px dashed var(--line);border-radius:16px;padding:14px}.question-list{display:flex;flex-direction:column;gap:14px}.question-modal .question-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:6px}.question-item{background:#f8fafc;border:1px solid #edf2f7;border-radius:18px;padding:18px}.question-title{font-weight:700;margin-bottom:12px;line-height:1.5}.question-options{display:flex;flex-wrap:wrap;gap:10px}.option-pill{background:#fff;border:1px solid #dbe4f0;padding:8px 12px;border-radius:999px;font-size:13px;display:inline-flex;align-items:center;gap:8px}.option-pill-correct{background:#ecfdf5;border-color:#86efac;color:#166534;font-weight:700}.option-tag{background:#16a34a;color:#fff;border-radius:999px;padding:3px 7px;font-size:11px;line-height:1}.question-edit-row{margin-top:16px}.question-input,.option-input{width:100%;border:1px solid var(--line);background:#fff;padding:12px 14px;border-radius:12px;outline:none;margin-bottom:10px}.question-options-editor{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.detail-card,.student-card{background:#f8fafc;border:1px solid #edf2f7;border-radius:18px;padding:18px}.detail-card span,.student-card span{display:block;color:var(--muted);font-size:13px;margin-bottom:8px}.detail-card strong,.student-card strong{font-size:16px;line-height:1.5}.student-shell{min-height:100vh;padding:36px;background:radial-gradient(circle at top left,rgba(18,200,182,.12),transparent 35%),radial-gradient(circle at top right,rgba(11,95,201,.12),transparent 38%),var(--bg)}.student-topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.student-topbar h2{font-size:38px}.student-topbar p{color:var(--muted);margin-top:8px}.student-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.student-card.full-width{margin-top:18px}.student-card h3{font-size:24px;margin-bottom:6px}.student-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.student-exam-list{display:flex;flex-direction:column;gap:14px}.student-exam-row{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.student-exam-row h4{font-size:18px;margin-bottom:6px}.student-exam-row p{color:var(--muted);font-size:14px}.student-exam-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.result-badge{border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800}.result-pass{color:#166534;background:#dcfce7;border:1px solid #86efac}.result-fail{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.student-exam-modal{max-height:min(760px,calc(100vh - 48px))}.student-exam-modal .question-list{overflow-y:auto;padding-right:6px}.exam-timer{background:#eff6ff;border:1px solid #bfdbfe;border-radius:14px;padding:10px 14px;min-width:120px;text-align:center}.exam-timer span{display:block;color:#1d4ed8;font-size:12px;font-weight:700;margin-bottom:4px}.exam-timer strong{color:#0f172a;font-size:22px}.student-question{background:#f8fafc;border:1px solid #edf2f7;border-radius:18px;padding:18px}.student-question h3{font-size:17px;line-height:1.5;margin-bottom:14px}.student-answer-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.student-answer-option{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;align-items:center;gap:10px;cursor:pointer}.student-answer-option input{accent-color:#0b5fc9}.result-summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.result-answer-review{max-height:300px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding-right:6px}.result-answer-row{background:#f8fafc;border:1px solid #edf2f7;border-radius:16px;padding:16px;display:flex;justify-content:space-between;gap:14px}.result-answer-row h3{font-size:16px;line-height:1.5;margin-bottom:8px}.result-answer-row p{color:var(--muted);line-height:1.6}.answer-correct{color:#166534}.answer-wrong{color:#991b1b}.empty-row{text-align:center;color:var(--muted);padding:28px!important}@media (max-width: 1100px){.layout{flex-direction:column}.sidebar{width:100%}.stats,.course-grid,.exam-grid,.student-grid,.detail-grid,.result-summary-grid,.student-answer-options{grid-template-columns:1fr}.student-exam-row{align-items:stretch;flex-direction:column}.student-exam-actions{justify-content:flex-start}.result-answer-row{flex-direction:column}.auth-card-grid{grid-template-columns:1fr}.topbar,.student-topbar,.section-header{flex-direction:column;align-items:stretch}.section-header input{width:100%}}
