/* =========================================================
   FUTURISTIC BIOMETRIC CONSOLE – CLEAN & MODULAR
   ========================================================= */

:root {
  --bg-main: #0b1f1c;
  --bg-tile: rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.14);

  --teal: #116466;
  --teal-glow: #1fd1c2;

  --gold: #d9b08c;
  --mint: #d1e8e2;

  --danger: #ef4444;
  --text-dim: #9fbfb9;
}

/* BASE */
body {
  margin: 0;
  background: radial-gradient(circle at top, #123b35, var(--bg-main));
  font-family: 'Inter', sans-serif;
  color: white;
}

/* HEADER */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand h1 {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  margin: 0;
}

.brand span {
  font-size: 12px;
  color: var(--text-dim);
}

.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.live-indicator {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  color: var(--mint);
}

.live-indicator .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
}

.icon-btn {
  color: white;
  font-size: 18px;
}

/* GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* TILE */
.tile {
  background: var(--bg-tile);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: fadeUp 0.6s ease both;
}

.tile:hover {
  border-color: var(--teal-glow);
  box-shadow: 0 0 18px rgba(31,209,194,0.25);
  transform: translateY(-2px);
}

/* STAT TILES */
.stat-tile .label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.stat-tile .value {
  font-family: 'Orbitron', monospace;
  font-size: 30px;
  margin-top: 6px;
  color: var(--mint);
}

.value.warning {
  color: var(--danger);
}

.value.live {
  color: #22c55e;
}

/* SCANNER */
.scanner-tile {
  grid-column: span 2;
}

.scanner-display {
  margin: 14px 0;
  padding: 14px;
  background: black;
  border: 1px solid var(--gold);
  border-radius: 8px;
  text-align: center;
  font-family: 'Orbitron', monospace;
  color: #00ffb0;
  animation: scanPulse 2s infinite;
}

.scan-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-glow));
  color: #002b28;
  font-weight: 600;
  cursor: pointer;
}

/* TODAY */
.today-tile .mini-stat {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-soft);
}

/* QUICK */
.quick-tile {
  grid-column: span 2;
}

.quick-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--mint);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.tab.active {
  background: var(--teal);
  color: white;
}

.quick-list {
  margin-top: 12px;
}

.hidden {
  display: none;
}

/* ANIMATIONS */
@keyframes pulse {
  0% { box-shadow: 0 0 0 rgba(34,197,94,0); }
  50% { box-shadow: 0 0 10px rgba(34,197,94,0.8); }
  100% { box-shadow: 0 0 0 rgba(34,197,94,0); }
}

@keyframes scanPulse {
  0% { box-shadow: 0 0 0 rgba(0,255,176,0); }
  50% { box-shadow: 0 0 18px rgba(0,255,176,0.4); }
  100% { box-shadow: 0 0 0 rgba(0,255,176,0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
