:root{--ink:#e9edff;--muted:#9aa7c7;--bg:#0b1020;--panel:#131b31;--line:#263452;--accent:#7468ff;--cyan:#45d6e8}*{box-sizing:border-box}body{background:radial-gradient(circle at 80% 0%,#1b2450 0,transparent 34%),var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}.topbar{background:#0a1022;border-bottom:1px solid var(--line);padding:14px 22px}.navbar-brand{letter-spacing:.5px}.navbar-brand span{color:var(--cyan)}.nav-link,.navbar-text{color:#c4cce3!important}.page-title{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:750;letter-spacing:-.04em}.muted{color:var(--muted)!important}.panel,.stat-card,.login-card{background:linear-gradient(145deg,rgba(23,33,58,.97),rgba(17,25,45,.97));border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 18px 45px #02061740}.stat-card{height:100%;padding:22px}.stat-card small{color:var(--muted)}.stat-card h2{font-size:2.3rem;margin:10px 0 0;font-weight:750}.btn-primary{background:linear-gradient(110deg,#6258ed,#8876ff);border:0}.btn-primary:hover{filter:brightness(1.12)}.form-control,.form-select{background:#0d1529;border-color:#344260;color:#eef2ff}.form-control:focus,.form-select:focus{background:#0d1529;color:white;border-color:#8176ff;box-shadow:0 0 0 .2rem #7468ff30}.form-control::placeholder{color:#7885a5}.form-label{color:#d5dcf1}.table{--bs-table-bg:transparent;--bs-table-color:#e4e9fa;--bs-table-border-color:var(--line)}.table thead th{color:#9eabc9;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em}.quick-link{display:block;color:#dce3ff;text-decoration:none;padding:13px 0;border-bottom:1px solid var(--line)}.quick-link:hover{color:var(--cyan)}.login-wrap{min-height:75vh;display:grid;place-items:center}.login-card{width:min(100%,430px);padding:36px}.login-card h2{text-align:center}.login-card .muted{text-align:center}.brand-mark{width:54px;height:54px;margin:0 auto 18px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#6458ed,#41cfe4);font-weight:900}.question-row{padding:18px 0;border-bottom:1px solid var(--line)}.option-label{display:block;background:#0d1529;border:1px solid var(--line);padding:12px 14px;border-radius:10px;margin:9px 0;cursor:pointer}.option-label:hover{border-color:var(--accent)}.option-label input{margin-right:10px}.exam-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.timer{font-size:1.5rem;font-weight:800;background:#321c35;color:#ffb5ca;border:1px solid #85405c;border-radius:12px;padding:10px 18px;min-width:105px;text-align:center}.result-card{text-align:center;max-width:650px;margin:50px auto}.badge{font-weight:600}@media(max-width:600px){.panel{padding:16px}.exam-head{align-items:flex-start;flex-direction:column}.login-card{padding:24px}}

/* Print layouts for student profile and fee receipts */
.receipt-sheet{background:#fff;color:#111;max-width:820px;padding:36px;margin:20px auto;border:1px solid #e5e7eb;border-radius:12px}
@media print{
  body{background:#fff!important;color:#111!important;font-size:12pt}
  .topbar,.no-print,nav,footer,.btn{display:none!important}
  main.container-fluid{padding:0!important;margin:0!important}
  .panel,.receipt-sheet{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;max-width:none!important}
  .receipt-sheet{width:100%}
  a{color:#111;text-decoration:none}
  table{page-break-inside:auto} tr{page-break-inside:avoid;page-break-after:auto}
}

/* Student achievement certificate — designed for 16:11 landscape PNG and print */
.certificate-wrap{width:100%;overflow-x:auto;padding:8px 0 18px}
.certificate{position:relative;isolation:isolate;width:min(1120px,100%);min-width:760px;aspect-ratio:16/11;margin:0 auto;padding:5.2% 7%;background:radial-gradient(circle at 50% 38%,#fff 0,#fffdf6 58%,#f8f0dc 100%);color:#24304a;text-align:center;border:12px solid #b58a3c;outline:3px solid #e6d4a5;outline-offset:-22px;box-shadow:0 18px 55px #0005;overflow:hidden}
.certificate:before,.certificate:after{content:"✦";position:absolute;color:#d4b46d;font-size:150px;opacity:.16;z-index:-1}.certificate:before{top:-35px;left:22px}.certificate:after{bottom:-55px;right:22px}
.cert-inner-border{position:absolute;inset:17px;border:1px solid #c6a45c;pointer-events:none}
.cert-topline{font-size:clamp(13px,1.6vw,19px);letter-spacing:.34em;font-weight:800;color:#27385a;margin-top:1.5%}
.cert-mark{width:54px;height:54px;margin:10px auto 8px;border-radius:50%;display:grid;place-items:center;background:#20365b;color:#f5d88f;border:3px double #c6a45c;font-family:Georgia,serif;font-size:29px;font-weight:bold}
.cert-kicker{font-size:clamp(11px,1.4vw,16px);letter-spacing:.22em;color:#a17a31;font-weight:700}
.cert-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(35px,5vw,62px);font-weight:500;color:#1d3154;margin:0;line-height:1.08}
.cert-subtitle{font-size:clamp(10px,1.2vw,14px);letter-spacing:.32em;color:#9b7738;font-weight:700}
.cert-presented{font-family:Georgia,serif;font-style:italic;color:#647087;margin:2.2% 0 .5%;font-size:clamp(13px,1.5vw,18px)}
.cert-student{font-family:Georgia,'Times New Roman',serif;font-size:clamp(28px,4.1vw,49px);font-weight:600;color:#182e52;margin:0 0 .5%}
.cert-rule{width:46%;height:1px;background:linear-gradient(90deg,transparent,#b58a3c,transparent);margin:0 auto 1.3%}
.cert-copy{font-family:Georgia,serif;color:#59667c;margin:0;font-size:clamp(12px,1.35vw,16px)}
.cert-exam{font-family:Georgia,serif;color:#263b60;font-size:clamp(18px,2.4vw,28px);margin:.5% 0 .2%;font-weight:700}
.cert-course{font-size:clamp(11px,1.2vw,14px);color:#8b744b;margin:0}
.cert-stats{display:flex;justify-content:center;gap:5%;margin:2.1% auto 1.5%;width:78%}
.cert-stats div{display:flex;flex-direction:column;gap:3px;min-width:0}.cert-stats span{font-size:clamp(8px,.9vw,11px);letter-spacing:.12em;color:#8b744b;font-weight:800}.cert-stats strong{font-family:Georgia,serif;font-size:clamp(13px,1.55vw,18px);color:#263b60}
.cert-bottom{display:flex;align-items:end;justify-content:space-between;width:78%;margin:1.5% auto 0}.cert-bottom>div:not(.cert-seal){width:29%;display:flex;flex-direction:column;align-items:center}.cert-sign-line{width:100%;border-top:1px solid #8d7955;margin-bottom:5px}.cert-bottom small{font-size:clamp(7px,.8vw,10px);letter-spacing:.1em;color:#68738a;font-weight:700}
.cert-seal{width:60px;height:60px;border:2px solid #b58a3c;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#a17a31;font-size:13px;font-weight:900;line-height:1.1;transform:rotate(-10deg)}.cert-seal small{font-size:7px}
.cert-footer{position:absolute;bottom:3.1%;left:8%;right:8%;display:flex;justify-content:space-between;color:#7e8492;font-size:clamp(8px,.85vw,10px);letter-spacing:.04em}
@media(max-width:700px){.certificate-wrap{padding-bottom:10px}.certificate{margin-left:0}}
@media print{.certificate-wrap{overflow:visible;padding:0}.certificate{width:100%;min-width:0;max-width:none;box-shadow:none;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
