* { box-sizing: border-box; }
:root {
  --primary: #0d6e4d;
  --primary-600: #095c40;
  --bg: #f5f7f9;
  --text: #1a1f24;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #b91c1c;
  --success: #166534;
}
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #0f172a; color: #e2e8f0; padding: 1rem;
           position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { font-weight: 700; margin-bottom: 1rem; color: #a7f3d0; }
.sidebar a { display: block; padding: .55rem .7rem; border-radius: 6px; color: #cbd5e1; }
.sidebar a:hover { background: #1e293b; color: #fff; text-decoration: none; }
.main { flex: 1; padding: 1.5rem 2rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.table th, .table td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: #f9fafb; font-weight: 600; color: var(--muted);
            font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.btn { display: inline-block; padding: .55rem .95rem; border-radius: 6px; background: var(--primary);
       color: #fff; border: none; cursor: pointer; font-size: .9rem; }
.btn:hover { background: var(--primary-600); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.alert { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: var(--success); }
.alert-error { background: #fee2e2; color: var(--danger); }
.auth-card { max-width: 380px; margin: 8vh auto; background: #fff; padding: 2rem;
             border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
label { display: block; margin: .85rem 0 .3rem; font-size: .85rem; color: var(--muted); }
input, select, textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--border);
                           border-radius: 6px; font: inherit; }
input:focus, select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.card { background: #fff; padding: 1rem 1.25rem; border-radius: 10px; border: 1px solid var(--border); }
.card h3 { margin: 0 0 .35rem; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.card .stat { font-size: 1.5rem; margin: 0; font-weight: 600; }
.form-inline { display: flex; gap: .5rem; align-items: center; max-width: 500px; }
.form-inline input, .form-inline select { flex: 1; }

/* Force sidebar icons to standard size */
.sidebar nav a svg,
.sidebar nav svg.icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}