:root{--navy:#13233f;--blue:#4c97ff;--blue-dark:#3373cc;--orange:#ffab19;--green:#25b96f;--red:#ef5b5b;--ink:#26354d;--muted:#6f7e93;--line:#e4eaf2;--surface:#fff;--bg:#f4f7fb;--shadow:0 24px 70px rgba(22,45,82,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:Nunito,"Segoe UI",sans-serif;overflow-x:hidden}button,input{font:inherit}.ambient{position:fixed;border-radius:50%;filter:blur(2px);pointer-events:none;z-index:-1}.ambient-one{width:420px;height:420px;left:-190px;top:15%;background:rgba(76,151,255,.11)}.ambient-two{width:340px;height:340px;right:-130px;bottom:-80px;background:rgba(255,171,25,.13)}
.site-header{height:92px;max-width:1240px;margin:auto;padding:14px 28px;display:flex;justify-content:space-between;align-items:center}.brand img{width:285px;height:66px;display:block}.institution{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.76rem;line-height:1.2;text-transform:uppercase;letter-spacing:.08em}.institution img{width:35px;height:47px;object-fit:contain}.institution b{color:var(--navy)}
main{min-height:calc(100vh - 142px)}.view{display:none}.view.active{display:flex}.hero{max-width:1180px;margin:0 auto;padding:45px 28px 80px;align-items:center;gap:9%;min-height:680px}.hero-copy{flex:1;max-width:600px}.eyebrow{display:flex;align-items:center;gap:10px;color:var(--blue-dark);font-size:.78rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.eyebrow span{width:24px;height:4px;border-radius:9px;background:var(--orange)}h1{margin:18px 0 20px;font-size:clamp(3rem,5.6vw,5.1rem);line-height:.98;letter-spacing:-.05em;color:var(--navy)}h1 em{font-style:normal;color:var(--blue);position:relative}h1 em:after{content:"";position:absolute;left:4%;right:2%;bottom:-7px;height:8px;background:var(--orange);border-radius:50%;transform:rotate(-1deg)}.hero-copy>p{max-width:530px;color:var(--muted);font-size:1.16rem;line-height:1.65}.feature-row{display:flex;align-items:center;gap:24px;margin-top:38px}.feature-row div{display:flex;flex-direction:column}.feature-row b{font-size:1.65rem;color:var(--navy);line-height:1}.feature-row span{font-size:.78rem;color:var(--muted);text-transform:uppercase;font-weight:800;letter-spacing:.07em}.feature-row i{height:35px;width:1px;background:var(--line)}
.login-card{position:relative;flex:0 0 430px;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.9);box-shadow:var(--shadow);padding:42px;border-radius:28px}.school-crest{position:absolute;width:82px;height:94px;object-fit:contain;right:30px;top:-52px;filter:drop-shadow(0 8px 10px rgba(18,35,63,.14))}.card-heading span{color:var(--orange);font-weight:900}.card-heading h2{font-size:1.65rem;margin:4px 0;color:var(--navy)}.card-heading p{color:var(--muted);margin:0 0 26px;font-size:.9rem}.login-card form>label{display:block;font-weight:800;font-size:.82rem;margin:18px 0 7px}.input-wrap{position:relative;margin-top:7px}.input-wrap span{position:absolute;left:16px;top:12px;color:var(--blue);font-size:1.3rem}.input-wrap input{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:14px 14px 14px 45px;outline:none;background:#fbfcfe;transition:.2s}.input-wrap input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(76,151,255,.1)}.grade-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}.grade-options input{position:absolute;opacity:0}.grade-options label{border:1.5px solid var(--line);border-radius:12px;padding:12px 16px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;background:#fbfcfe}.grade-options label span{color:var(--muted);font-size:.78rem}.grade-options input:checked+label{border-color:var(--blue);background:#eef6ff;color:var(--blue)}.grade-options input:checked+label:before{content:"✓";color:white;background:var(--blue);width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:.7rem}.grade-options input:checked+label span{display:none}.primary-btn,.secondary-btn,.ghost-btn{border:0;border-radius:12px;font-weight:900;cursor:pointer;transition:transform .2s,box-shadow .2s,opacity .2s}.primary-btn{background:linear-gradient(135deg,var(--blue),#347ee2);color:white;padding:15px 20px;box-shadow:0 10px 24px rgba(76,151,255,.28)}.login-card .primary-btn{width:100%;display:flex;justify-content:space-between;margin-top:20px}.primary-btn:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(76,151,255,.35)}.form-error{min-height:18px;margin:8px 0 -8px;color:var(--red);font-size:.78rem;font-weight:700}.help{text-align:center;color:#9aa6b5;font-size:.74rem;margin:18px 0 0}
.quiz-shell{max-width:960px;margin:auto;padding:35px 24px 80px;flex-direction:column}.quiz-top{display:flex;align-items:center;justify-content:space-between}.mini-label{display:block;color:var(--muted);font-size:.7rem;text-transform:uppercase;font-weight:900;letter-spacing:.1em}.quiz-top strong{color:var(--navy)}.timer{font-weight:900;color:var(--navy);background:white;padding:10px 18px;border-radius:999px;box-shadow:0 5px 18px rgba(20,40,70,.08)}.timer.warning{color:var(--red)}.ghost-btn{background:transparent;color:var(--muted);padding:10px 14px}.progress-wrap{margin:30px 0 20px}.progress-info{display:flex;justify-content:space-between;font-size:.8rem;font-weight:800;color:var(--muted);margin-bottom:8px}.progress-info b{color:var(--blue)}.progress{height:7px;background:#dfe6ef;border-radius:10px;overflow:hidden}.progress span{display:block;height:100%;width:8%;background:linear-gradient(90deg,var(--blue),#76b4ff);border-radius:10px;transition:width .35s}.question-card{background:white;border-radius:25px;padding:38px 46px;box-shadow:var(--shadow)}.question-meta{display:flex;justify-content:space-between;align-items:center}.question-meta span:first-child{background:#fff4df;color:#bd7400;border-radius:999px;padding:7px 12px;font-size:.72rem;text-transform:uppercase;font-weight:900;letter-spacing:.06em}.question-meta span:last-child{font-weight:900;color:#dfe5ee;font-size:2.5rem}.question-card h2{font-size:clamp(1.35rem,2.5vw,1.85rem);color:var(--navy);line-height:1.35;margin:18px 0 26px}.options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.option{border:1.5px solid var(--line);background:#fbfcfe;border-radius:14px;padding:15px;display:flex;text-align:left;gap:12px;align-items:center;color:var(--ink);cursor:pointer;transition:.2s}.option:hover{border-color:#b9d6ff;transform:translateY(-1px)}.option .letter{flex:0 0 31px;width:31px;height:31px;border-radius:9px;background:#edf1f7;display:grid;place-items:center;font-weight:900;color:var(--muted)}.option.selected{background:#edf6ff;border-color:var(--blue);color:var(--navy);font-weight:800}.option.selected .letter{background:var(--blue);color:white}.quiz-actions{display:flex;justify-content:space-between;margin-top:30px}.secondary-btn{background:#edf1f6;color:var(--muted);padding:14px 20px}.primary-btn:disabled,.secondary-btn:disabled{opacity:.42;cursor:not-allowed;transform:none}.question-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:24px}.question-dots button{width:10px;height:10px;padding:0;border:0;border-radius:50%;background:#ccd5e1;cursor:pointer}.question-dots button.answered{background:var(--green)}.question-dots button.current{outline:3px solid rgba(76,151,255,.2);background:var(--blue)}
.result-shell{max-width:850px;margin:auto;padding:35px 24px 80px;justify-content:center}.result-card{text-align:center;background:white;border-radius:28px;padding:40px 50px;box-shadow:var(--shadow);width:100%}.result-icon{width:54px;height:54px;margin:-70px auto 18px;border-radius:50%;display:grid;place-items:center;background:var(--orange);color:white;font-size:1.6rem;box-shadow:0 10px 24px rgba(255,171,25,.34)}.eyebrow.center{justify-content:center}.result-card h2{font-size:2rem;color:var(--navy);margin:8px 0}.result-card>p{color:var(--muted)}.score-ring{--score:0;margin:25px auto;width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--blue) calc(var(--score)*1%),#e8edf4 0);position:relative}.score-ring:after{content:"";position:absolute;inset:12px;background:white;border-radius:50%}.score-ring div{z-index:1;display:flex;align-items:baseline}.score-ring b{font-size:2.7rem;color:var(--navy)}.score-ring span{color:var(--muted)}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:16px;margin:22px 0}.result-stats div{padding:16px;border-right:1px solid var(--line)}.result-stats div:last-child{border:0}.result-stats b,.result-stats span{display:block}.result-stats b{color:var(--navy)}.result-stats span{font-size:.7rem;color:var(--muted)}.competencies{text-align:left;margin:20px 0}.competency-line{display:grid;grid-template-columns:160px 1fr 45px;align-items:center;gap:12px;margin:10px 0;font-size:.78rem;font-weight:800}.competency-line i{height:7px;background:#e6ebf2;border-radius:10px;overflow:hidden}.competency-line i span{display:block;height:100%;background:var(--green);border-radius:10px}.result-card>.primary-btn{min-width:210px}
footer{height:50px;max-width:1180px;margin:auto;padding:0 28px;display:flex;justify-content:space-between;color:#99a5b5;font-size:.72rem}footer a{color:var(--muted);text-decoration:none;font-weight:800}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,120px);background:var(--navy);color:white;padding:12px 20px;border-radius:11px;box-shadow:var(--shadow);transition:.3s;z-index:10}.toast.show{transform:translate(-50%,0)}
@media(max-width:850px){.hero{flex-direction:column;padding-top:25px}.hero-copy{text-align:center}.eyebrow,.feature-row{justify-content:center}.hero-copy>p{margin-inline:auto}.login-card{width:min(100%,460px);flex:auto;margin-top:55px}.institution{display:none}.options{grid-template-columns:1fr}}
@media(max-width:560px){.site-header{height:76px;padding:8px 18px}.brand img{width:230px}.hero{padding:25px 16px 60px;gap:20px}.hero-copy h1{font-size:2.7rem}.feature-row{gap:15px}.login-card{padding:32px 22px}.question-card{padding:26px 20px}.quiz-top{gap:8px}.quiz-top strong{font-size:.8rem}.result-card{padding:35px 18px}.result-stats{grid-template-columns:1fr}.result-stats div{border-right:0;border-bottom:1px solid var(--line)}.competency-line{grid-template-columns:110px 1fr 35px}footer{padding:0 18px}}
.admin-header nav{display:flex;align-items:center;gap:8px}.admin-header nav a{color:var(--muted);text-decoration:none;padding:9px 14px;border-radius:9px;font-size:.8rem;font-weight:900}.admin-header nav a.active{background:#edf6ff;color:var(--blue-dark)}.admin-header a.logout{color:var(--red)}
.students-card{margin-top:30px}.table-tools{display:flex;gap:10px}.table-tools select,.student-form input,.student-form select{border:1px solid var(--line);background:white;border-radius:10px;padding:10px 13px;outline:none}.table-tools select:focus,.student-form input:focus,.student-form select:focus{border-color:var(--blue)}.status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.68rem;font-weight:900}.status.active{background:#e7f8ef;color:#149254}.status.inactive{background:#eef1f5;color:#7c899a}.row-actions{display:flex;gap:6px}.row-actions form{margin:0}.icon-btn{width:33px;height:33px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--muted);cursor:pointer}.icon-btn:hover{border-color:var(--blue);color:var(--blue)}.icon-btn.danger:hover{border-color:var(--red);color:var(--red)}.alert{padding:13px 16px;border-radius:11px;margin-top:24px;font-size:.82rem;font-weight:800}.alert.success{background:#e7f8ef;color:#158b52}.alert.error{background:#ffebeb;color:#c84141}
dialog{border:0;border-radius:22px;padding:0;width:min(480px,calc(100% - 30px));box-shadow:0 30px 90px rgba(14,31,58,.25)}dialog::backdrop{background:rgba(13,28,50,.52);backdrop-filter:blur(4px)}.student-form{padding:30px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-head h2{margin:6px 0 20px;color:var(--navy)}.close-btn{border:0;background:transparent;color:var(--muted);font-size:1.5rem;cursor:pointer}.student-form>label{display:flex;flex-direction:column;gap:6px;font-size:.78rem;font-weight:900;margin:14px 0}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.modal-actions .close-btn{font-size:.9rem}.modal-actions .primary-btn{padding:13px 18px}
@media(max-width:700px){.admin-header nav{order:3;width:100%;justify-content:center}.admin-header{height:auto;flex-wrap:wrap}.table-tools{width:100%;flex-direction:column}.table-tools input{width:100%}.students-card .table-heading{flex-direction:column;align-items:flex-start;gap:14px}}
.result-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.recovery-btn{border:1.5px solid var(--orange);background:#fff7e8;color:#a96700;border-radius:12px;padding:14px 20px;font-weight:900;cursor:pointer}.recovery-btn:hover{background:#ffefd1}.recovery-btn:disabled{opacity:.55}
.score-badge{display:inline-flex;min-width:62px;justify-content:center;padding:6px 9px;border-radius:9px;font-size:.75rem;font-weight:900}.score-badge.passed{background:#e7f8ef;color:#158b52}.score-badge.failed{background:#ffebeb;color:#c84141}.pending-score{color:#96a2b2;font-size:.72rem;font-weight:800}.pending-score.recovery{color:#b87300;background:#fff4dd;padding:5px 8px;border-radius:8px}
.document-number{display:inline-block;color:var(--navy);font-size:.85rem;letter-spacing:.04em;background:#f1f5fa;padding:6px 10px;border-radius:8px;min-width:54px;text-align:center}
.attempt-count{display:inline-grid;place-items:center;min-width:34px;height:30px;padding:0 9px;border-radius:9px;background:#edf6ff;color:var(--blue-dark);font-weight:900}
