/* ExamPath India — Admin styles. Same palette as the User App. English UI only. */
:root{--navy:#102A43;--blue:#246BCE;--cyan:#16B8C4;--purple:#7257D5;--orange:#F59E0B;--green:#159A72;--red:#E11D48;--bg:#F4F7FB;--surface:#fff;--text:#102A43;--muted:#5B6B7C;--border:#E2E8F0;--shadow:0 6px 24px rgba(16,42,67,.10);--radius:14px}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Segoe UI',system-ui,-apple-system,Roboto,'Noto Sans',sans-serif;background:var(--bg);color:var(--text);line-height:1.55;font-size:15px}
a{color:var(--blue);text-decoration:none}
button{font-family:inherit;cursor:pointer;min-height:44px;border-radius:11px;border:none;font-weight:700;font-size:14px;padding:10px 16px}
input,select,textarea{font-family:inherit;font-size:15px;padding:11px 12px;border:1.5px solid var(--border);border-radius:11px;background:#fff;color:var(--text);width:100%;min-height:44px}
label{font-weight:700;font-size:13.5px;display:block;margin:0 0 5px}
textarea{min-height:90px;resize:vertical}
h1{font-size:24px}h2{font-size:19px}h3{font-size:16px}
.muted{color:var(--muted)}.small{font-size:13px}.mono{font-family:ui-monospace,Consolas,monospace;font-size:13px;word-break:break-all}
.btn{background:var(--blue);color:#fff}.btn:hover{background:#1B57AB}
.btn-green{background:var(--green);color:#fff}.btn-red{background:var(--red);color:#fff}
.btn-orange{background:var(--orange);color:#fff}.btn-purple{background:var(--purple);color:#fff}
.btn-ghost{background:#fff;color:var(--blue);border:1.5px solid var(--blue)}
.btn-soft{background:#EAF1FC;color:var(--blue)}
.btn-sm{min-height:38px;padding:7px 12px;font-size:13px}
.btn-block{width:100%}
.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.b-green{background:#D9F2E6;color:#0B6B45}.b-blue{background:#DBEAFE;color:#1D4ED8}.b-orange{background:#FEF3C7;color:#92400E}
.b-red{background:#FDE2E4;color:#9F1239}.b-purple{background:#EDE9FE;color:#5B21B6}.b-grey{background:#E8EDF3;color:#475569}
.badge-admin{background:#F59E0B;color:#102A43;font-size:12px;letter-spacing:.4px}
/* auth */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(135deg,#102A43 0%,#1D4E89 55%,#16B8C4 100%)}
.auth-card{background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.3);max-width:440px;width:100%;padding:32px 28px}
.auth-card .logo-row{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.auth-card .mark{width:48px;height:48px;border-radius:13px;background:linear-gradient(135deg,var(--blue),var(--cyan));display:grid;place-items:center;font-size:26px}
.auth-card h1{font-size:22px}.auth-card p{color:var(--muted);margin:6px 0 18px}
.auth-card .field{margin-bottom:14px}
.notice{border-radius:12px;padding:12px 14px;font-size:13.5px;margin:0 0 16px;line-height:1.5}
.notice-amber{background:#FFFBEB;border:1.5px solid #FDE68A;color:#78350F}
.notice-blue{background:#EFF6FF;border:1.5px solid #BFDBFE;color:#1E3A8A}
.notice-green{background:#ECFDF5;border:1.5px solid #A7F3D0;color:#065F46}
.notice-red{background:#FEF2F2;border:1.5px solid #FECACA;color:#991B1B}
.err{color:var(--red);font-size:13.5px;font-weight:700;margin-top:6px;min-height:18px}
/* shell */
.shell{display:flex;min-height:100vh}
.sidebar{width:248px;background:var(--navy);color:#fff;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;z-index:40}
.side-head{padding:18px 18px 12px;border-bottom:1px solid rgba(255,255,255,.14)}
.side-head .t{font-size:18px;font-weight:800}.side-head .t span{color:#FBBF24}
.side-head .sub{font-size:12px;color:#9CC3FF;margin-top:2px}
.side-nav{flex:1;overflow-y:auto;padding:10px}
.side-nav button{display:flex;width:100%;align-items:center;gap:10px;background:transparent;color:#D7E3F4;text-align:left;padding:11px 12px;border-radius:10px;font-size:14.5px;font-weight:600;min-height:44px;margin-bottom:2px}
.side-nav button:hover{background:rgba(255,255,255,.1);color:#fff}
.side-nav button.active{background:var(--blue);color:#fff}
.side-foot{padding:14px 18px;border-top:1px solid rgba(255,255,255,.14);font-size:12.5px;color:#9CC3FF}
.main{flex:1;margin-left:248px;min-width:0}
.topbar{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:12px 20px;flex-wrap:wrap}
.topbar h1{font-size:20px}
.topbar .spacer{flex:1}
.content{padding:20px;max-width:1180px;margin:0 auto}
.menu-btn{display:none;background:var(--navy);color:#fff;min-height:44px;padding:8px 14px}
/* cards / grids */
.grid{display:grid;gap:16px}
.g4{grid-template-columns:repeat(4,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
.card h2{margin-bottom:4px}.card h3{margin-bottom:8px}
.stat .n{font-size:30px;font-weight:800;line-height:1.1}.stat .l{color:var(--muted);font-size:13.5px;font-weight:600}
.mt{margin-top:16px}.mb{margin-bottom:16px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.row-end{justify-content:flex-end}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.toolbar input,.toolbar select{width:auto;flex:1;min-width:160px}
/* tables */
.tbl-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;background:#fff}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
th,td{padding:11px 12px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}
th{background:#F1F5F9;font-size:12.5px;text-transform:uppercase;letter-spacing:.4px;color:#475569;white-space:nowrap}
tr:last-child td{border-bottom:none}
td .actions{display:flex;gap:6px;flex-wrap:wrap}
.empty{padding:26px;text-align:center;color:var(--muted)}
/* modal */
.modal-bg{position:fixed;inset:0;background:rgba(16,42,67,.55);z-index:100;display:flex;align-items:flex-start;justify-content:center;padding:24px 12px;overflow-y:auto}
.modal{background:#fff;border-radius:18px;max-width:640px;width:100%;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.modal h2{margin-bottom:4px}.modal .field{margin-bottom:13px}
.modal .f2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.checkline{display:flex;gap:9px;align-items:flex-start;font-weight:600;font-size:14px}
.checkline input{width:20px;height:20px;min-height:20px;flex:none;margin-top:2px}
.kv{display:grid;grid-template-columns:170px 1fr;gap:6px 12px;font-size:14.5px}
.kv dt{color:var(--muted);font-weight:700}.kv dd{word-break:break-word}
.list-plain{list-style:none}.list-plain li{padding:9px 0;border-bottom:1px solid var(--border)}
.list-plain li:last-child{border-bottom:none}
.pill-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.pill-tabs button{background:#fff;border:1.5px solid var(--border);color:var(--text)}
.pill-tabs button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
pre.logbox{background:#0F172A;color:#E2E8F0;border-radius:12px;padding:14px;font-size:12.5px;overflow:auto;max-height:320px;white-space:pre-wrap;word-break:break-word}
@media(max-width:960px){.g4{grid-template-columns:repeat(2,1fr)}.g3,.g2{grid-template-columns:1fr}}
@media(max-width:820px){
 .sidebar{transform:translateX(-100%);transition:transform .2s}
 .sidebar.open{transform:none}
 .main{margin-left:0}.menu-btn{display:block}
 .modal .f2{grid-template-columns:1fr}.kv{grid-template-columns:1fr}
}
