:root{--bg:#0f172a;--panel:#111827;--muted:#9ca3af;--text:#e5e7eb;--brand:#4f46e5;--success:#059669;--warning:#d97706;--danger:#ef4444;}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;}
a{color:var(--brand);text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:16px}
.header{background:#1e3a5f;border-bottom:2px solid #2c5282;padding:0;position:relative}
.header-inner{display:flex;align-items:stretch;justify-content:space-between;max-width:100%;padding:0;flex-direction:column}
.header-top{display:flex;width:100%}
.brand{background:#162e4d;padding:14px 24px;display:flex;align-items:center}
.brand a{color:#fff;font-weight:700;font-size:18px;white-space:nowrap}
.nav{display:flex;align-items:stretch;flex:1;margin:0;padding:0;gap:0}
.nav a{display:flex;align-items:center;color:#fff;padding:14px 24px;transition:all 0.2s;border-bottom:3px solid transparent;font-weight:600;font-size:15px;text-transform:uppercase;letter-spacing:0.5px}
.nav a:hover,.nav a.active{background:#2c5282;border-bottom-color:#60a5fa;color:#fff}
.page-actions{display:flex;justify-content:space-between;align-items:center;margin:16px 0}
.btn{display:inline-block;background:#1f2937;color:#e5e7eb;border:1px solid #374151;border-radius:6px;padding:8px 12px;cursor:pointer;font-size:14px}
.btn:hover{background:#2b3646}
.btn-sm{padding:4px 8px;font-size:12px}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover{filter:brightness(1.05)}
.btn-secondary{background:#374151}
.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}
.btn-success{background:var(--success);border-color:var(--success);color:#fff}
.muted{color:#9ca3af}
.alert{padding:12px 14px;border-radius:6px;margin:16px 0}
.alert.success{background:#052e1e;color:#d1fae5;border:1px solid #065f46}
.alert.error{background:#3b0d0d;color:#fecaca;border:1px solid #7f1d1d}
.alert.info{background:#0c1929;color:#bfdbfe;border:1px solid #1e40af}
.section-card{background:var(--panel);border:1px solid #1f2937;border-radius:10px;margin:16px 0;padding:12px}
.section-card h2{margin:6px 0 12px;font-size:18px;display:flex;align-items:center}
.section-card .h2-actions{margin-left:auto;display:flex;gap:6px}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}
.table{display:grid;gap:6px}
.table-row{display:grid;grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));gap:8px;align-items:center;background:#0b1220;border:1px solid #1f2937;border-radius:8px;padding:10px}
.table-row.header{background:#0f172a;border:1px solid #334155;font-weight:600}
.row-actions{display:flex;gap:6px}
.badge{display:inline-block;background:#374151;border:1px solid #4b5563;border-radius:999px;padding:2px 8px;font-size:12px;color:#cbd5e1}
.badge.active{background:#052e1e;border-color:#065f46;color:#d1fae5}
.badge.inactive{background:#3b0d0d;border-color:#7f1d1d;color:#fecaca}
.badge.pending{background:#1f2937;border-color:#f59e0b;color:#fbbf24}
.badge.assigned{background:#0c1929;border-color:#1e40af;color:#bfdbfe}
.empty{padding:20px;color:#cbd5e1}
form.form{display:flex;flex-direction:column;gap:10px}
label{display:flex;flex-direction:column;gap:6px;font-size:14px}
input[type=text],input[type=number],input[type=email],input[type=tel],input[type=date],input[type=time],input[type=color],textarea,select{background:#0b1220;color:#e5e7eb;border:1px solid #374151;border-radius:6px;padding:8px}
.checkbox{flex-direction:row;align-items:center;gap:8px}
.grid.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid.three-cols{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
.stat-card{background:var(--panel);border:1px solid #1f2937;border-radius:10px;padding:16px;text-align:center}
.stat-card .stat-value{font-size:32px;font-weight:700;color:#fff}
.stat-card .stat-label{color:var(--muted);font-size:14px;margin-top:4px}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:1000}
.modal{background:var(--panel);border:1px solid #1f2937;border-radius:10px;padding:16px;max-width:560px;width:100%}
.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.footer{border-top:1px solid #1f2937;background:#0b1220;margin-top:24px}
@media (max-width: 900px){
  .grid.two-cols,.grid.three-cols{grid-template-columns:1fr}
  .table-row{grid-template-columns:1fr}
  .nav{flex-wrap:wrap}
}
