/* MuniBot Admin Panel — Custom CSS */

/* =====================================================================
   Base
   ===================================================================== */

:root {
  --munibot-primary: #0d6efd;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* =====================================================================
   Cards / Metrics
   ===================================================================== */

.metric-card {
  border: none;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

/* =====================================================================
   Tables
   ===================================================================== */

.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 600;
  border-top: none;
}

.table td {
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.04);
}

/* =====================================================================
   Forms
   ===================================================================== */

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--munibot-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* =====================================================================
   HTMX transitions — fade for swapped fragments
   ===================================================================== */

.htmx-swapping {
  opacity: 0;
  transition: opacity 200ms ease;
}

.htmx-added {
  opacity: 0;
  animation: fadeIn 200ms ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* =====================================================================
   Status toggle container — HTMX swap target
   ===================================================================== */

#status-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* =====================================================================
   Utilities
   ===================================================================== */

.cursor-pointer {
  cursor: pointer;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
