/* Minimal, clean styles */
* { box-sizing: border-box; }
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --border: #e6e8ef;
  --muted: #6b7280;
  --text: #111827;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --secondary: #6c757d;
  --danger: #ef4444;
  --success: #16a34a;
  --warning: #f59e0b;
}
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; color: var(--text); background: linear-gradient(180deg, #f8f9fc 0%, var(--bg) 100%); }
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.small { font-size: 12px; color: #666; }
header.container { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.6); backdrop-filter: saturate(150%) blur(6px); border-radius: 0 0 12px 12px; }
h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
input[type="text"], input[type="email"], select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; background: var(--primary); color: #fff; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 6px 14px rgba(79,70,229,.18); transition: transform .05s ease, background .2s ease; }
.btn:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); box-shadow: none; }
.btn-secondary:hover { background: #5a6268; }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-danger:hover { background: #dc2626; }
.table-wrapper { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 20px rgba(17,24,39,.04); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #eef0f5; text-align: left; }
thead th { position: sticky; top: 0; background: #f3f4f6; font-weight: 600; z-index: 1; }
tbody tr:hover { background: #fafbff; }
.actions { display: flex; gap: 6px; align-items: center; }
.actions { display: flex; gap: 6px; align-items: center; }
.alert { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.form .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; }
.form input, .form select { width: 100%; }
footer { color: #666; }

/* Cards and dashboard */
.card { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 8px 24px rgba(17,24,39,.06); }
.card h2 { margin: 0 0 10px; font-size: 16px; color: #111; letter-spacing: .2px; }
.muted { color: var(--muted); }

/* Badges */
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; line-height: 1; border: 1px solid var(--border); background: #f9fafb; color: #374151; }
.badge-success { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.25); color: var(--success); }
.badge-danger { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); color: var(--warning); }

/* Login */
.login-box { max-width: 420px; margin: 64px auto; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 10px 28px rgba(17,24,39,.08); }
.login-box h1 { font-size: 20px; }

/* Chart tooltip */
.chart-tooltip { position: fixed; pointer-events: none; background: #111827; color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); z-index: 1000; }







