:root {
    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --primary: #2563eb;
    --text: #1e293b;
    --muted: #64748b;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; color: var(--text); background: var(--bg); display: flex; min-height: 100vh; }
.sidebar { width: 225px; background: var(--sidebar-bg); color: var(--sidebar-text); flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-brand { padding: 18px 20px; font-weight: 700; font-size: 15px; color: #fff; border-bottom: 1px solid #1e293b; }
.nav-menu { padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-menu a { padding: 9px 12px; border-radius: 6px; color: var(--sidebar-text); text-decoration: none; font-size: 13px; font-weight: 500; transition: 0.15s; }
.nav-menu a:hover, .nav-menu a.active { background: #1e293b; color: #fff; }
.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 54px; background: var(--card); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.topbar-title { font-size: 15px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.content { padding: 24px; max-width: 1240px; width: 100%; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; }
.card h3 { font-size: 14.5px; margin-bottom: 12px; color: #0f172a; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-val { font-size: 20px; font-weight: 700; margin-top: 4px; color: #0f172a; }
.btn { padding: 7px 14px; font-size: 13px; font-weight: 500; border-radius: 6px; border: 1px solid transparent; cursor: pointer; background: var(--primary); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { opacity: 0.92; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: #334155; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
    width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #f8fafc; }
.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }