:root { --bg:#f3f4f6; --card:#fff; --text:#111827; --muted:#6b7280; --line:#e5e7eb; --primary:#2563eb; --danger:#dc2626; --success:#15803d; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Inter,Arial,sans-serif; }
.layout { display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.sidebar { background:#111827; color:white; padding:20px; }
.brand { font-size:24px; font-weight:800; margin-bottom:20px; }
.nav a { display:block; color:#d1d5db; text-decoration:none; padding:10px 12px; border-radius:10px; margin-bottom:8px; }
.nav a.active, .nav a:hover { background:#1f2937; color:white; }
.content { padding:24px; }
.page-title { font-size:32px; font-weight:800; margin-bottom:8px; }
.page-subtitle { color:var(--muted); margin-bottom:24px; }
.cards { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; margin-bottom:24px; }
.card, .panel { background:var(--card); border-radius:16px; padding:18px; box-shadow:0 1px 2px rgba(0,0,0,.04); margin-bottom:20px; }
.card-title { color:var(--muted); font-size:14px; margin-bottom:8px; }
.card-value { font-size:28px; font-weight:800; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:12px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.02em; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700; background:#e5e7eb; }
.badge.primary { background:#dbeafe; color:#1d4ed8; }
.badge.success { background:#dcfce7; color:#166534; }
.badge.warning { background:#fef3c7; color:#92400e; }
.filters, .form-grid { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
input, select { padding:10px 12px; border-radius:10px; border:1px solid #d1d5db; min-width:180px; }
button { border:0; background:var(--primary); color:white; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:700; }
.button-danger { background:var(--danger); }
.flash-success, .flash-error { padding:12px 14px; border-radius:12px; margin-bottom:14px; font-weight:600; }
.flash-success { background:#dcfce7; color:#166534; }
.flash-error { background:#fee2e2; color:#991b1b; }
.muted { color:var(--muted); }
.inline-list { margin:0; padding-left:18px; }
.top-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.login-card { width:100%; max-width:420px; background:#fff; border-radius:18px; padding:24px; box-shadow:0 8px 30px rgba(0,0,0,.08); }
@media (max-width:1000px){ .layout{grid-template-columns:1fr;} .cards{grid-template-columns:repeat(2,minmax(0,1fr));} }
