*{box-sizing:border-box}:root{--blue:#0b63f6;--blue2:#004fd6;--navy:#07184d;--soft:#eef6ff;--muted:#667085;--border:#dce8f8;--green:#22c55e;--orange:#f59e0b;--purple:#7c3aed;--red:#ef4444;--shadow:0 16px 40px rgba(15,55,120,.10)}
body{min-height: 100%; margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f8ff;color:var(--navy)}a{color:var(--blue);text-decoration:none}.sva-header{min-height:92px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:16px 48px;border-bottom:1px solid #e6eef8;gap:20px}.sva-brand{display:flex;align-items:center;gap:18px}.sva-logo-icon{width:58px;height:58px;border-radius:16px;background:linear-gradient(145deg,#0b79ff,#034dd8);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(11,99,246,.25);font-size:34px;font-weight:900}.sva-logo-text{font-size:42px;font-weight:900;letter-spacing:-2px;color:#06164a;line-height:1}.sva-logo-text span{color:#1265f3}.sva-brand-divider{width:1px;height:50px;background:#cfd9eb}.sva-subtitle{font-size:18px;line-height:1.28;color:#0d1d55;font-weight:600}.sva-header-right{display:flex;align-items:center;gap:22px;font-size:17px;font-weight:700;color:#10245e}.sva-cap{font-size:25px;color:var(--blue)}.login-page{min-height:calc(100vh - 92px);background:radial-gradient(circle at 30% 25%,rgba(32,123,255,.10),transparent 35%),linear-gradient(120deg,#f6fbff 0%,#eaf5ff 100%);position:relative;overflow:hidden}.login-wrap{min-height:calc(100vh - 178px);display:grid;grid-template-columns:1.15fr .85fr;gap:40px;padding:52px 70px 30px;align-items:center}.login-hero{position:relative;min-height:650px;padding-left:110px}.school-bg{position:absolute;left:0;bottom:120px;width:265px;height:310px;opacity:.18;background:linear-gradient(#0b63f6,#0b63f6) 50% 0/45px 70px no-repeat,linear-gradient(#0b63f6,#0b63f6) 18% 52%/26px 95px no-repeat,linear-gradient(#0b63f6,#0b63f6) 50% 52%/26px 95px no-repeat,linear-gradient(#0b63f6,#0b63f6) 82% 52%/26px 95px no-repeat,linear-gradient(#0b63f6,#0b63f6) 50% 100%/245px 35px no-repeat;border:7px solid #0b63f6;border-top:0;border-radius:16px 16px 8px 8px}.school-bg:before{content:"";position:absolute;top:-80px;left:77px;width:100px;height:80px;border:7px solid #0b63f6;border-bottom:0;border-radius:70px 70px 0 0}.hero-title{margin-top:28px;font-size:58px;line-height:1.1;letter-spacing:-2px;font-weight:900;color:#07184d}.hero-title span{color:var(--blue)}.hero-line{width:115px;height:5px;border-radius:50px;background:var(--blue);margin:22px 0}.hero-desc{max-width:600px;font-size:21px;line-height:1.45;color:#163064}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));max-width:650px;gap:26px 34px;margin-top:38px}.feature-item{display:flex;gap:16px;align-items:flex-start}.feature-icon{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:27px;flex-shrink:0}.fi-blue{background:#dcecff;color:var(--blue)}.fi-green{background:#dcfce7;color:#16a34a}.fi-orange{background:#fff1d6;color:var(--orange)}.fi-purple{background:#ede9fe;color:var(--purple)}.feature-item h4{margin:2px 0 6px;font-size:15px}.feature-item p{margin:0;color:#273b73;font-size:14px;line-height:1.35}.hero-illustration{position:absolute;left:0;bottom:0;width:95%;height:230px}.books-stack{position:absolute;left:0;bottom:0;width:250px;height:125px}.book{position:absolute;width:245px;height:38px;border-radius:9px;box-shadow:0 8px 18px rgba(0,0,0,.10)}.b1{bottom:0;background:#f7b731}.b2{bottom:34px;left:14px;background:#10b981}.b3{bottom:68px;left:4px;background:#2563eb}.notebook{position:absolute;left:235px;bottom:0;width:260px;height:185px;background:#fff;border-radius:10px;transform:rotate(-6deg);box-shadow:0 14px 28px rgba(0,0,0,.14);padding:28px 26px;font-family:"Comic Sans MS",cursive;font-size:24px;line-height:1.35;color:#111827}.notebook span{border-bottom:3px solid var(--blue)}.check-badge{position:absolute;left:455px;bottom:22px;width:80px;height:80px;border-radius:50%;background:#3ed182;color:#fff;font-size:50px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 25px rgba(34,197,94,.30)}.quiz-tablet{position:absolute;left:555px;bottom:8px;width:330px;height:175px;border-radius:24px;background:#0c244f;padding:14px;transform:rotate(-3deg);box-shadow:0 16px 28px rgba(5,23,64,.25)}.quiz-screen{background:#f8fbff;border-radius:16px;height:100%;padding:28px 32px;font-size:14px;color:#24335f}.quiz-screen b{color:#16a34a;border-bottom:2px solid #16a34a}.login-card{max-width:635px;background:rgba(255,255,255,.94);border:1px solid #e4eefb;border-radius:28px;box-shadow:var(--shadow);padding:48px 54px 34px;margin:auto}.auth-card-small{width:520px;max-width:95%}.login-lock{width:92px;height:92px;margin:0 auto 18px;border-radius:50%;background:#eaf3ff;color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:42px}.login-card h2{text-align:center;margin:0;font-size:30px;color:#07184d}.login-small{text-align:center;color:var(--muted);margin:8px 0 28px}.form-group{margin-bottom:20px}.form-group label{display:block;font-weight:800;font-size:14px;margin-bottom:8px}.input-wrap{position:relative}.input-icon{position:absolute;left:18px;top:50%;transform:translateY(-50%);color:#8a97b5;font-size:18px}.input-wrap input{width:100%;height:52px;border:1px solid #d6e2f2;border-radius:11px;padding:0 48px;font-size:15px;outline:none;background:#fff}.input-wrap input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(11,99,246,.10)}.login-btn{width:100%;height:56px;border:0;border-radius:11px;color:#fff;background:linear-gradient(90deg,#074fe3,#0d7cff);font-size:18px;font-weight:800;cursor:pointer;box-shadow:0 14px 25px rgba(11,99,246,.24)}.divider{display:flex;align-items:center;gap:14px;color:#667085;font-size:14px;margin:24px 0 16px}.divider:before,.divider:after{content:"";height:1px;background:#dce8f8;flex:1}.google-btn{height:52px;border:1px solid #0b63f6;border-radius:10px;background:#fff;color:#0d1d55;display:flex;align-items:center;justify-content:center;gap:14px;font-size:16px;font-weight:800}.google-g{font-weight:900;color:#ea4335;font-size:22px}.login-links{display:flex;justify-content:space-between;margin:20px 0 24px;font-size:15px}.center-link{justify-content:center}.security-note{display:flex;gap:18px;align-items:center;background:#eef7ff;border-radius:15px;padding:20px}.shield{width:52px;height:52px;border-radius:15px;background:#e0efff;color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:28px;flex-shrink:0}.security-note h4{margin:0 0 4px}.security-note p{margin:0;color:#34406b;line-height:1.35;font-size:14px}.auth-alert{padding:13px 15px;border-radius:12px;margin-bottom:18px;font-size:14px}.auth-alert.error{background:#fee2e2;color:#991b1b}.auth-alert.success{background:#dcfce7;color:#166534}.auth-page-simple{min-height:calc(100vh - 92px);display:flex;align-items:center;justify-content:center;padding:35px;background:radial-gradient(circle at 30% 25%,rgba(32,123,255,.10),transparent 35%),linear-gradient(120deg,#f6fbff 0%,#eaf5ff 100%)}.sva-footer{min-height:86px;background:linear-gradient(90deg,#003d9d,#0074ff);color:#fff;display:flex;align-items:center;justify-content:space-around;gap:24px;padding:16px 48px}.footer-seal{width:60px;height:60px;border-radius:50%;background:#fff;color:#063b94;display:flex;align-items:center;justify-content:center;font-weight:900;flex-shrink:0}.footer-block{display:flex;align-items:center;gap:15px;min-width:190px}.footer-block h5{margin:0 0 4px;font-size:14px}.footer-block p{margin:0;font-size:12px;opacity:.88;line-height:1.35}.footer-icon{font-size:31px;opacity:.9}

.dashboard-body{min-height: 100vh; background:#f4f9ff;}
.dashboard-shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: calc(100vh - 92px);
}
.sidebar{background:#fff;border-right:1px solid #e4eef8;padding:30px 18px}.nav-item{height:56px;display:flex;align-items:center;gap:17px;padding:0 18px;border-radius:12px;color:#0d1d55;font-weight:800;margin-bottom:8px}.nav-icon{width:24px;text-align:center;font-size:21px}.nav-item.active{background:linear-gradient(90deg,#0754ed,#0a74ff);color:#fff;box-shadow:0 10px 18px rgba(11,99,246,.20)}.help-card{margin-top:80px;background:#f2f8ff;border:1px solid #dbeafe;border-radius:18px;padding:22px;position:relative;overflow:hidden}.help-card h3{margin:0 0 8px}.help-card p{margin:0 0 18px;color:#273b73;line-height:1.35}.help-card button{border:1px solid #b8d3ff;background:#fff;color:var(--blue);border-radius:10px;padding:10px 14px;font-weight:800}
.dashboard-main {
    padding: 26px 28px 0;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
}
.user-tools{display:flex;align-items:center;gap:18px}.bell{position:relative;font-size:25px}.bell span{position:absolute;right:-10px;top:-9px;background:#ef233c;color:#fff;width:20px;height:20px;border-radius:50%;font-size:12px;display:flex;align-items:center;justify-content:center}.profile{display:flex;align-items:center;gap:12px}.avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(145deg,#dbeafe,#93c5fd);display:flex;align-items:center;justify-content:center;font-size:26px}.profile strong{display:block;font-size:14px}.profile small{color:var(--muted);display:block}.welcome-banner{min-height:190px;border-radius:18px;background:linear-gradient(90deg,rgba(239,247,255,.98),rgba(218,237,255,.92)),radial-gradient(circle at 80% 50%,rgba(11,99,246,.16),transparent 40%);border:1px solid #dceafb;padding:44px;position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center}.welcome-banner h1{margin:0 0 10px;font-size:38px;letter-spacing:-1px}.welcome-banner h1 span{color:var(--blue)}.welcome-banner p{margin:0;color:#243b72;font-size:17px;line-height:1.4}.quote-card{width:285px;background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:22px;line-height:1.45;font-weight:700}.quote-card:before{content:"“";font-size:46px;color:var(--blue);float:left;margin-right:10px;line-height:32px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:22px 0}.stat-card{background:#fff;border:1px solid #e1ecfa;border-radius:16px;box-shadow:0 12px 30px rgba(15,55,120,.07);padding:22px;display:flex;align-items:center;gap:20px}.stat-icon{width:58px;height:58px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px}.si-blue{background:var(--blue)}.si-green{background:#26c281}.si-purple{background:#7c3aed}.si-orange{background:var(--orange)}.stat-card small{display:block;font-weight:800;color:#1e2d61}.stat-card strong{display:inline-block;font-size:28px;margin-top:3px}.up{color:#16a34a;font-weight:800;margin-left:8px}.stat-card p{margin:2px 0 0;color:#354475;font-size:13px}.dashboard-grid{display:grid;grid-template-columns:1.35fr .95fr .95fr;gap:20px}.panel{background:#fff;border:1px solid #e1ecfa;border-radius:16px;box-shadow:0 12px 30px rgba(15,55,120,.07);padding:22px}.panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.panel h3{margin:0;font-size:18px}.panel-link{color:var(--blue);font-size:13px;font-weight:800}.mini-select{border:1px solid #d6e2f2;border-radius:8px;padding:8px;color:#10245e}.chart-legend{display:flex;gap:25px;font-size:13px;font-weight:700;margin-bottom:12px}.chart-box{height:220px;position:relative;border-left:1px solid #d7e4f5;border-bottom:1px solid #d7e4f5;background:linear-gradient(to top,#e8f0fa 1px,transparent 1px) 0 0/100% 44px,linear-gradient(to right,#edf3fb 1px,transparent 1px) 0 0/80px 100%}.chart-line{position:absolute;left:20px;right:20px;top:55px;height:85px;border-bottom:4px solid var(--blue);border-radius:50%;transform:skewY(-6deg)}.chart-line.dash{top:35px;border-bottom:4px dashed #5ca9ff;opacity:.9}.chart-tooltip{position:absolute;left:53%;top:68px;background:#fff;border:1px solid #cfe0f6;border-radius:10px;padding:12px;font-size:12px;box-shadow:0 8px 18px rgba(0,0,0,.08)}.chart-note{margin-top:15px;color:#40517d;font-size:13px}.mastery-list{display:grid;gap:22px}.mastery-row{display:grid;grid-template-columns:24px 1fr 130px 42px;align-items:center;gap:10px;font-size:14px;font-weight:800}.rank{width:24px;height:24px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}.r1{background:var(--blue)}.r2{background:var(--orange)}.r3{background:#facc15}.r4{background:#26c281}.bar{height:5px;background:#e5eaf3;border-radius:10px;overflow:hidden}.bar span{height:100%;display:block;border-radius:10px}.submission-list{display:grid;gap:13px}.submission{display:flex;gap:12px;border-bottom:1px solid #edf2f9;padding-bottom:12px}.submission:last-child{border-bottom:0}.sub-icon{width:36px;height:36px;border-radius:10px;background:#eaf3ff;display:flex;align-items:center;justify-content:center;color:var(--blue)}.submission strong{font-size:13px}.submission p{margin:3px 0 0;color:#43537b;font-size:12px}.submission time{margin-left:auto;color:#53617f;font-size:12px;white-space:nowrap}.bottom-grid{margin-top:20px;display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.task-row{display:grid;grid-template-columns:1fr 100px 120px;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf2f9;font-size:13px}.task-row:last-child{border-bottom:0}.task-date.red{color:#ef4444;font-weight:800}.task-btn{border:1px solid #a8c8ff;background:#fff;color:var(--blue);border-radius:8px;padding:8px 10px;font-weight:800}.task-btn.primary{background:var(--blue);color:#fff}.tip-panel{background:#eef7ff;position:relative;overflow:hidden}.tip-panel p{color:#21366e;line-height:1.45}.tip-panel b{color:var(--blue);border-bottom:2px solid var(--blue)}
.dashboard-footer {
    margin: auto -28px 0;
}

/* =========================
   RESPONSIVE BASE
========================= */
@media(max-width:1100px){
    .login-wrap{grid-template-columns:1fr;padding:30px}
    .login-hero{padding-left:0;min-height:auto}
    .hero-illustration{display:none}
    .dashboard-shell{grid-template-columns:1fr}
    .sidebar{display:none}
    .stat-grid,.dashboard-grid,.bottom-grid{grid-template-columns:1fr}
    .sva-header{padding:16px;height:auto;flex-wrap:wrap}
    .sva-header-right{flex-wrap:wrap}
    .hero-title{font-size:42px}
    .login-card{padding:35px 25px}
}

/* =========================
   PAGE / MODULE STYLE
========================= */
.page-head {
    background: #fff;
    border: 1px solid #e1ecfa;
    border-radius: 18px;
    padding: 26px 28px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(15, 55, 120, .07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.page-head h1 { margin: 0; color: #07184d; font-size: 28px; }
.page-head p { margin: 6px 0 0; color: #40517d; }

.action-btn {
    border: 0;
    background: linear-gradient(90deg, #074fe3, #0d7cff);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(11,99,246,.18);
    display: inline-block;
}

.module-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.search-box {
    width: 320px;
    max-width: 100%;
    height: 42px;
    border: 1px solid #d6e2f2;
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
}
.search-box:focus {
    border-color: #0b63f6;
    box-shadow: 0 0 0 4px rgba(11, 99, 246, .10);
}

.module-table { width: 100%; border-collapse: collapse; }
.module-table th,
.module-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f9;
    text-align: left;
    font-size: 14px;
}
.module-table th {
    color: #10245e;
    font-weight: 900;
    background: #f6faff;
}
.status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.status-active { background: #dcfce7; color: #166534; }
.status-inactive { background: #fee2e2; color: #991b1b; }
.muted { color: #667085; }
.empty-state { padding: 30px; text-align: center; color: #667085; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 9px;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.btn-view { background: #eaf3ff; color: #0b63f6; }
.btn-edit { background: #dcfce7; color: #166534; }
.btn-delete { background: #fee2e2; color: #991b1b; }

/* =========================
   CRUD MODAL
========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 24, 77, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}
.modal-overlay.show { display: flex; }
.crud-modal {
    width: 620px;
    max-width: 100%;
    max-height: 92vh;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0,0,0,.22);
    overflow: hidden;
    animation: modalPop .18s ease-out;
}
@keyframes modalPop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.crud-modal-header {
    padding: 22px 26px;
    background: linear-gradient(90deg, #074fe3, #0d7cff);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.crud-modal-header h2 { margin: 0; font-size: 20px; }
.modal-close {
    border: 0;
    background: rgba(255,255,255,.18);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
}
.crud-modal-body {
    padding: 24px 26px;
    max-height: calc(92vh - 150px);
    overflow-y: auto;
}
.crud-modal-footer {
    padding: 18px 26px;
    background: #f7fbff;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #10245e;
    margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d6e2f2;
    border-radius: 11px;
    padding: 10px 12px;
    outline: none;
    font-family: inherit;
}
.form-field textarea { min-height: 95px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #0b63f6;
    box-shadow: 0 0 0 4px rgba(11, 99, 246, .10);
}
.btn-cancel {
    border: 1px solid #d6e2f2;
    background: #fff;
    color: #10245e;
    padding: 11px 16px;
    border-radius: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
}
.btn-save {
    border: 0;
    background: linear-gradient(90deg, #074fe3, #0d7cff);
    color: #fff;
    padding: 11px 18px;
    border-radius: 11px;
    font-weight: 900;
    cursor: pointer;
}
.delete-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 14px;
    padding: 16px;
    line-height: 1.5;
}

/* =========================
   QUESTION / ASSESSMENT / STUDENT SIDE
========================= */
.choice-grid {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.choice-label { font-weight: 900; color: #10245e; }
.checkbox-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d6e2f2;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 8px;
    border-bottom: 1px solid #edf2f9;
    font-size: 14px;
}
.checkbox-item:last-child { border-bottom: 0; }
.checkbox-item input { margin-top: 3px; }

.student-assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}
.assessment-card {
    background: #fff;
    border: 1px solid #e1ecfa;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15,55,120,.07);
}
.assessment-card h3 { margin: 0 0 8px; color: #07184d; }
.assessment-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.meta-pill {
    background: #eef6ff;
    color: #0b3f91;
    border: 1px solid #d9e8fb;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.quiz-container { max-width: 980px; margin: 0 auto; }
.quiz-question {
    background: #fff;
    border: 1px solid #e1ecfa;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15,55,120,.07);
    margin-bottom: 18px;
}
.quiz-question h3 { margin: 0 0 12px; color: #07184d; }
.choice-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e1ecfa;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f8fbff;
    cursor: pointer;
}
.choice-option:hover { border-color: #0b63f6; background: #eef6ff; }
.result-score-box {
    background: linear-gradient(90deg, #074fe3, #0d7cff);
    color: #fff;
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 16px 38px rgba(11,99,246,.20);
}
.result-score-box h1 { margin: 0; font-size: 46px; }
.result-score-box p { margin: 8px 0 0; opacity: .92; }
.answer-correct { background: #dcfce7 !important; border-color: #22c55e !important; }
.answer-wrong { background: #fee2e2 !important; border-color: #ef4444 !important; }
.answer-neutral { background: #f8fbff; }

.report-card {
    background: #fff;
    border: 1px solid #e1ecfa;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15,55,120,.07);
}
.report-card h3 { margin: 0 0 8px; }
.report-card strong { font-size: 32px; color: #0b63f6; }
.form-help { font-size: 12px; color: #667085; margin-top: 5px; }

/* =========================
   QUIZ TIMER
========================= */
.quiz-timer-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #dce8f8;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(15,55,120,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.quiz-timer-title { font-weight: 900; color: #07184d; }
.quiz-timer-clock {
    font-size: 26px;
    font-weight: 900;
    color: #0b63f6;
    letter-spacing: 1px;
}
.quiz-timer-bar.warning { border-color: #f59e0b; background: #fffbeb; }
.quiz-timer-bar.warning .quiz-timer-clock { color: #d97706; }
.quiz-timer-bar.danger { border-color: #ef4444; background: #fef2f2; }
.quiz-timer-bar.danger .quiz-timer-clock { color: #dc2626; }
.quiz-progress-wrap {
    width: 100%;
    height: 8px;
    background: #e5eaf3;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}
.quiz-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #074fe3, #0d7cff);
    border-radius: 999px;
    transition: width .4s ease;
}
.quiz-timer-bar.warning .quiz-progress-fill { background: #f59e0b; }
.quiz-timer-bar.danger .quiz-progress-fill { background: #ef4444; }

/* =========================
   FOOTER FIX TO BOTTOM
========================= */
html, body { min-height: 100%; }
body.dashboard-body {
    min-height: 100vh;
    background: #f4f9ff;
}
.dashboard-shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: calc(100vh - 92px);
}
.dashboard-main {
    padding: 26px 28px 0;
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
}
.dashboard-main > .sva-footer,
.dashboard-footer {
    margin: auto -28px 0;
}
.sva-footer {
    min-height: 86px;
    background: linear-gradient(90deg,#003d9d,#0074ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    padding: 16px 48px;
    flex-wrap: wrap;
}

/* =========================
   RESPONSIVE FIXES
========================= */
@media(max-width:1100px) {
    .dashboard-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .dashboard-main { min-height: calc(100vh - 92px); }
    .dashboard-main > .sva-footer,
    .dashboard-footer {
        margin-left: -28px;
        margin-right: -28px;
        margin-top: auto;
    }
    .stat-grid,
    .dashboard-grid,
    .bottom-grid { grid-template-columns: 1fr; }
    .sva-footer { padding: 16px 24px; }
}
@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .quiz-timer-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .quiz-timer-clock { font-size: 22px; }
    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   ONE QUESTION QUIZ UI
========================= */

.quiz-container {
    max-width: 980px;
    margin: 0 auto;
}

.quiz-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 22px;
    align-items: start;
}

.quiz-question-slide {
    display: none;
}

.quiz-question-slide.active {
    display: block;
}

.quiz-side-panel {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid #e1ecfa;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15,55,120,.07);
}

.quiz-side-panel h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.answer-count {
    background: #eef6ff;
    color: #0b3f91;
    border-radius: 12px;
    padding: 12px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 14px;
}

.question-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.question-nav-btn {
    height: 38px;
    border: 1px solid #d6e2f2;
    background: #f8fbff;
    border-radius: 10px;
    font-weight: 900;
    color: #07184d;
    cursor: pointer;
}

.question-nav-btn.current {
    background: #0b63f6;
    color: #fff;
    border-color: #0b63f6;
}

.question-nav-btn.answered {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.question-nav-btn.current.answered {
    background: #0b63f6;
    color: #fff;
    border-color: #0b63f6;
}

.question-nav-btn.unanswered {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.quiz-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.quiz-nav-button {
    border: 1px solid #d6e2f2;
    background: #fff;
    color: #07184d;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

.quiz-nav-button:hover {
    border-color: #0b63f6;
    color: #0b63f6;
}

.quiz-nav-button.primary {
    border: 0;
    background: linear-gradient(90deg, #074fe3, #0d7cff);
    color: #fff;
}

.quiz-nav-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.choice-option.selected {
    border-color: #0b63f6;
    background: #eef6ff;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, .08);
}

.quiz-incomplete-warning {
    display: none;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    padding: 12px 14px;
    border-radius: 12px;
    margin-top: 14px;
    font-weight: 800;
}

.quiz-incomplete-warning.show {
    display: block;
}

@media(max-width: 900px) {
    .quiz-layout {
        grid-template-columns: 1fr;
    }

    .quiz-side-panel {
        position: static;
        order: -1;
    }

    .question-nav-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media(max-width: 600px) {
    .question-nav-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .quiz-control-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-nav-button {
        width: 100%;
    }
}


/* =========================
   HEADER NOTIFICATIONS - HOVER ONLY
========================= */

.notif-wrap {
    position: relative;
}

.notif-bell {
    position: relative;
    border: 0;
    background: #eef6ff;
    color: #07184d;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 21px;
    cursor: default;
}

.notif-bell span {
    position: absolute;
    right: -4px;
    top: -5px;
    background: #ef4444;
    color: #fff;
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.notif-dropdown {
    position: absolute;
    top: 54px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 30px);
    background: #fff;
    border: 1px solid #dce8f8;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(7, 24, 77, .18);
    display: none;
    overflow: hidden;
    z-index: 99999;
}

/* Hover lang lalabas */
.notif-wrap:hover .notif-dropdown {
    display: block;
}

.notif-head {
    padding: 15px 16px;
    border-bottom: 1px solid #edf2f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-head strong {
    color: #07184d;
}

.notif-head a {
    font-size: 12px;
    font-weight: 800;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f9;
    color: #07184d;
}

.notif-item:hover {
    background: #f6faff;
}

.notif-item.unread {
    background: #eef6ff;
}

.notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item b {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.notif-item p {
    margin: 0 0 5px;
    color: #34406b;
    font-size: 13px;
    line-height: 1.35;
}

.notif-item small {
    color: #667085;
    font-size: 11px;
}

.notif-empty {
    padding: 24px;
    text-align: center;
    color: #667085;
    font-weight: 700;
}

.notif-footer {
    padding: 13px 16px;
    text-align: center;
    background: #f8fbff;
}

.notif-footer a {
    font-weight: 900;
}

.notif-footer.disabled span {
    color: #98a2b3;
    font-weight: 900;
    cursor: not-allowed;
}

/* =========================
   NOTIFICATION HOVER CLICK FIX
========================= */

.notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: -18px;
    z-index: 99999;
}

.notif-bell {
    position: relative;
    border: 0;
    background: #eef6ff;
    color: #07184d;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

.notif-bell span {
    position: absolute;
    right: 2px;
    top: -5px;
    background: #ef4444;
    color: #fff;
    min-width: 23px;
    height: 23px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.notif-dropdown {
    position: absolute;
    top: 62px;
    right: 0;
    width: 430px;
    max-width: calc(100vw - 30px);
    background: #fff;
    border: 1px solid #dce8f8;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(7, 24, 77, .18);
    display: none;
    overflow: hidden;
    z-index: 999999;
    pointer-events: auto;
}

/* Ito ang bridge para hindi mawala ang hover habang papunta sa dropdown */
.notif-dropdown::before {
    content: "";
    position: absolute;
    top: -18px;
    right: 0;
    width: 100%;
    height: 18px;
    background: transparent;
}

.notif-wrap:hover .notif-dropdown,
.notif-dropdown:hover {
    display: block;
}

.notif-head {
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-head strong {
    color: #07184d;
    font-size: 22px;
}

.notif-head a {
    font-size: 15px;
    font-weight: 900;
    color: #0b63f6;
    position: relative;
    z-index: 3;
}

.notif-item {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f9;
    color: #07184d;
    position: relative;
    z-index: 3;
}

.notif-item:hover {
    background: #f6faff;
}

.notif-item.unread {
    background: #eef6ff;
}

.notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item b {
    display: block;
    font-size: 17px;
    margin-bottom: 5px;
}

.notif-item p {
    margin: 0 0 8px;
    color: #10245e;
    font-size: 15px;
    line-height: 1.35;
}

.notif-item small {
    color: #667085;
    font-size: 12px;
}

.notif-empty {
    padding: 24px;
    text-align: center;
    color: #667085;
    font-weight: 800;
}

.notif-footer {
    padding: 18px 20px;
    text-align: center;
    background: #f8fbff;
    position: relative;
    z-index: 3;
}

.notif-footer a {
    font-weight: 900;
    font-size: 22px;
    color: #0b63f6;
}

.notif-footer.disabled span {
    color: #98a2b3;
    font-weight: 900;
    cursor: not-allowed;
}

/* =========================
   TAKE QUIZ WIDTH / LAYOUT FIX
   para hindi lumiit sa last question
========================= */

.quiz-container {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
}

.quiz-timer-bar {
    width: 100% !important;
    max-width: 100% !important;
}

.quiz-layout {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 248px !important;
    gap: 26px !important;
    align-items: start !important;
}

.quiz-layout > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
}

.quiz-question,
.quiz-question-slide {
    width: 100% !important;
    min-height: 430px !important;
}

.quiz-question-slide {
    display: none !important;
}

.quiz-question-slide.active {
    display: block !important;
}

.quiz-side-panel {
    width: 248px !important;
    min-width: 248px !important;
}
/* =========================
   QUIZ BUTTON POSITION FIX
   Previous left, Next/Submit right
========================= */

.quiz-control-bar {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 22px !important;
}

#prevBtn {
    margin-right: auto !important;
}

#nextBtn,
#submitQuizBtn {
    margin-left: auto !important;
    min-width: 200px !important;
}

.quiz-nav-button {
    min-height: 52px !important;
}

/* Kapag hidden ang Next sa last question, Submit nasa kanan pa rin */
#nextBtn[style*="display: none"] + #submitQuizBtn,
#submitQuizBtn {
    margin-left: auto !important;
}

/* Mobile */
@media(max-width: 900px) {
    .quiz-control-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #prevBtn,
    #nextBtn,
    #submitQuizBtn {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =========================
   NOTIFICATION CLICK DROPDOWN FIX
========================= */

.notif-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    z-index: 99999 !important;
}

.notif-bell {
    position: relative !important;
    border: 0 !important;
    background: #eef6ff !important;
    color: #07184d !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    cursor: pointer !important;
}

.notif-bell span {
    position: absolute !important;
    right: 2px !important;
    top: -5px !important;
    background: #ef4444 !important;
    color: #fff !important;
    min-width: 23px !important;
    height: 23px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px !important;
}

.notif-dropdown {
    position: absolute !important;
    top: 64px !important;
    right: 0 !important;
    width: 430px !important;
    max-width: calc(100vw - 30px) !important;
    background: #fff !important;
    border: 1px solid #dce8f8 !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(7, 24, 77, .18) !important;
    display: none !important;
    overflow: hidden !important;
    z-index: 999999 !important;
}

/* Click JS ang magpapalabas, hindi hover */
.notif-dropdown.show {
    display: block !important;
}

/* I-disable ang hover display kung meron sa lumang CSS */
.notif-wrap:hover .notif-dropdown {
    display: none;
}

.notif-wrap:hover .notif-dropdown.show {
    display: block !important;
}

.notif-head {
    padding: 18px 20px !important;
    border-bottom: 1px solid #edf2f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.notif-head strong {
    color: #07184d !important;
    font-size: 22px !important;
}

.notif-head a {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #0b63f6 !important;
}

.notif-item {
    display: flex !important;
    gap: 14px !important;
    padding: 18px 20px !important;
    border-bottom: 1px solid #edf2f9 !important;
    color: #07184d !important;
}

.notif-item:hover {
    background: #f6faff !important;
}

.notif-item.unread {
    background: #eef6ff !important;
}

.notif-footer {
    padding: 18px 20px !important;
    text-align: center !important;
    background: #f8fbff !important;
}

.notif-footer a {
    font-weight: 900 !important;
    font-size: 22px !important;
    color: #0b63f6 !important;
}

.notif-footer.disabled span {
    color: #98a2b3 !important;
    font-weight: 900 !important;
    cursor: not-allowed !important;
}

.retake-btn {
    background: linear-gradient(90deg, #f59e0b, #f97316) !important;
    box-shadow: 0 12px 24px rgba(249, 115, 22, .20) !important;
}

.attempt-badge {
    display: inline-block;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
}

.quiz-summary-box {
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 14px 0;
}

.quiz-summary-box p {
    margin: 7px 0;
}

.notif-row-unread {
    background: #eef6ff !important;
}

.notif-row-unread td {
    font-weight: 700;
}

.form-field textarea {
    width: 100%;
    border: 1px solid #d6e2f2;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.form-field textarea:focus {
    border-color: #0b63f6;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, .10);
}