* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI',Arial,sans-serif; }
body { background:#f1f5f9; color:#1e293b; min-height:100vh; display:flex; flex-direction:column; }

/* Navbar */
.navbar { background:#1e293b; color:#fff; padding:14px 24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.nav-brand { font-size:20px; font-weight:700; }
.nav-links { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.nav-links a { color:#cbd5e1; text-decoration:none; padding:6px 12px; border-radius:6px; font-size:14px; }
.nav-links a:hover, .nav-links a.active { background:#3b82f6; color:#fff; }
.nav-links a.logout { background:#ef4444; color:#fff; }
.nav-user { font-size:13px; color:#94a3b8; }

.container { flex:1; max-width:1200px; width:100%; margin:0 auto; padding:24px; }
h1 { margin-bottom:20px; font-size:24px; }
h3 { margin-bottom:12px; font-size:16px; }
.muted { color:#94a3b8; font-weight:400; font-size:14px; }
.text-green { color:#16a34a; } .text-red { color:#dc2626; }

/* Cards */
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-bottom:20px; }
.card { padding:20px; border-radius:12px; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.card h3 { font-size:13px; font-weight:500; opacity:.9; text-transform:uppercase; letter-spacing:.5px; }
.card p { font-size:26px; font-weight:700; margin-top:8px; }
.card.blue { background:linear-gradient(135deg,#3b82f6,#2563eb); }
.card.red { background:linear-gradient(135deg,#ef4444,#dc2626); }
.card.green { background:linear-gradient(135deg,#22c55e,#16a34a); }
.card.orange { background:linear-gradient(135deg,#f97316,#ea580c); }
.card.dark { background:linear-gradient(135deg,#334155,#1e293b); }
.card.big { grid-column:1/-1; text-align:center; }
.card.big p { font-size:36px; }

/* Panels & tables */
.panel { background:#fff; border-radius:12px; padding:20px; margin-bottom:20px; box-shadow:0 1px 4px rgba(0,0,0,.08); overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { padding:10px 12px; text-align:left; border-bottom:1px solid #e2e8f0; }
th { background:#f8fafc; font-weight:600; color:#475569; }
tr:hover td { background:#f8fafc; }
.badge { background:#dbeafe; color:#1d4ed8; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.badge.red { background:#fee2e2; color:#b91c1c; }
.btn-del { text-decoration:none; }

.chart-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:20px; }
.chart-grid.two { grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.chart-grid canvas { max-height:280px; }
.two-col { display:grid; grid-template-columns:1fr; gap:20px; }
@media(min-width:900px){ .two-col { grid-template-columns:1fr 1fr; } }

/* Forms */
.entry-form label, .filter-bar label { display:block; font-size:13px; font-weight:600; color:#475569; margin:10px 0 4px; }
input, select, textarea { width:100%; padding:10px 12px; border:1px solid #cbd5e1; border-radius:8px; font-size:14px; }
input:focus, select:focus { outline:none; border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.15); }
.form-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.btn-primary { background:#3b82f6; color:#fff; border:none; padding:11px 24px; border-radius:8px; font-size:15px; cursor:pointer; margin-top:16px; font-weight:600; }
.btn-primary:hover { background:#2563eb; }
.btn-primary.full { width:100%; }
.filter-bar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.filter-bar select, .filter-bar input { width:auto; }

.alert { padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.alert.success { background:#dcfce7; color:#166534; border:1px solid #86efac; }
.alert.error { background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }

/* Login */
.login-body { display:flex; align-items:center; justify-content:center; min-height:100vh; background:linear-gradient(135deg,#1e3a8a,#1e293b); }
.login-box { background:#fff; padding:36px; border-radius:16px; width:100%; max-width:380px; box-shadow:0 10px 40px rgba(0,0,0,.3); }
.login-box h2 { text-align:center; margin-bottom:4px; }
.login-sub { text-align:center; color:#64748b; font-size:14px; margin-bottom:20px; }
.login-box label { display:block; font-size:13px; font-weight:600; color:#475569; margin:12px 0 4px; }
.hint { text-align:center; font-size:12px; color:#94a3b8; margin-top:16px; }

.footer { text-align:center; padding:16px; color:#94a3b8; font-size:13px; }
