/* ============================================================
   Cosmos Smart Parking — Staff Panel Styles
   ============================================================ */

:root {
  --bg-dark:    #0a0f1e;
  --card:       #ffffff;
  --line:       #e2eaf5;
  --text:       #0a1628;
  --muted:      #64748b;
  --accent:     #1741c4;
  --accent-h:   #1234a8;
  --accent-2:   #f59e0b;
  --danger:     #dc2626;
  --success:    #0d6e63;
  --bg-soft:    #f4f7fc;
  --font-head:  'Unbounded', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&family=DM+Sans:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0f1e 0%, #1a2f6e 100%);
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--text);
}

/* ── SHELL ── */
.staff-shell {
  width: 100%;
  max-width: 680px;
}

/* ── CARD ── */
.staff-card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
}

/* ── BRAND ── */
.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #2855d8, var(--accent-2));
  display: grid; place-items: center;
  font-size: 22px; color: #fff;
  box-shadow: 0 8px 20px rgba(40,85,216,.35);
}

.brand {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 7px;
}

/* ── INPUTS ── */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23,65,196,.1);
}

/* ── BUTTONS ── */
button {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  transition: all .18s ease;
  min-height: 46px;
}

.main-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, var(--accent), #2855d8);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .03em;
  box-shadow: 0 8px 24px rgba(23,65,196,.28);
}

.main-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(23,65,196,.36);
}

.main-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.secondary {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 14px;
}

.secondary:hover {
  background: var(--line);
  color: var(--text);
}

.danger-btn {
  background: #fff0f0;
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.danger-btn:hover {
  background: #fee2e2;
}

/* ── DASHBOARD TOP ── */
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

/* ── PANEL BOX ── */
.panel-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.panel-box h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── WHITELIST ENTRIES ── */
.whitelist-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
}

.whitelist-entry:last-child { margin-bottom: 0; }

.entry-info { flex: 1; min-width: 0; }

.entry-plate {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--text);
  margin-bottom: 3px;
}

.entry-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

/* ── ERROR ── */
.error {
  min-height: 20px;
  margin-top: 10px;
  color: var(--danger);
  font-weight: 700;
  font-size: 13px;
}

/* ── UTILITY ── */
.hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  body { padding: 12px; }
  .staff-card { padding: 22px 18px; border-radius: 18px; }
  h1 { font-size: 22px; }
  .dashboard-top { flex-direction: column; }
  .dashboard-top .secondary { align-self: flex-end; }
}
