/* HexaCity Police UI - modern dark theme */
:root {
  --blue: #1e3a8a;
  --blue-light: #3b82f6;
  --bg: #0b1220;
  --panel: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --border: #1f2a44;
  --shadow: 0 6px 18px rgba(0,0,0,0.4);
  --radius: 12px;
  --space: 16px;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #0c1830);
  color: var(--text);
}
.site-header, .site-footer {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand-title { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.logo { width: 28px; height: 28px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4)); }
.nav { display: flex; gap: 12px; align-items: center; }
.nav-link { color: white; text-decoration: none; font-weight: 600; opacity: .9; }
.nav-link:hover { text-decoration: underline; }
.logout-form { display: inline; }
.btn { background: #182033; color: white; border: 1px solid var(--border); padding: 9px 14px; border-radius: 8px; cursor: pointer; box-shadow: var(--shadow); }
.btn-primary { background: var(--blue-light); border: none; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); }
.btn-ghost .tag { margin-left: 6px; background: rgba(0,0,0,.25); padding: 2px 6px; border-radius: 999px; font-size: 12px; }
.container { max-width: 1000px; margin: 20px auto; padding: 0 16px; }
.alert { padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; }
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid var(--success); }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid var(--error); }
.hero { text-align: center; padding: 60px 20px; }
.hero h1 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: 34px; margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--panel); padding: 18px; border-radius: var(--radius); color: var(--text); text-decoration: none; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; }
.card h2 { margin-top: 0; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 18px; }
.card:hover { border-color: var(--blue-light); transform: translateY(-2px); }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table th { background: #0a1224; text-align: left; font-weight: 600; }
.table tr:hover td { background: rgba(59,130,246,0.06); }
.panel { background: var(--panel); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 16px; box-shadow: var(--shadow); }
.form { display: grid; gap: 10px; background: var(--panel); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); }
input, textarea { background: #0b1220; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
label { color: var(--muted); font-size: 14px; font-weight: 600; }
.site-footer { justify-content: center; }
input, textarea { outline: none; }
input:focus, textarea:focus { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }

/* Badges (statuts) */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .2px; border: 1px solid var(--border); }
.badge-paid { background: rgba(16,185,129,0.15); color: #a7f3d0; border-color: rgba(16,185,129,.4); }
.badge-pending { background: rgba(59,130,246,0.15); color: #bfdbfe; border-color: rgba(59,130,246,.4); }
.badge-refused { background: rgba(245,158,11,0.15); color: #fde68a; border-color: rgba(245,158,11,.4); }
.badge-overdue { background: rgba(239,68,68,0.15); color: #fecaca; border-color: rgba(239,68,68,.4); }

small.muted { color: var(--muted); }
