/* ================================================================
   Prospect BarberHub — Design System
   Dark premium · Gold accent · Inter + Bebas Neue
   ================================================================ */

/* ── CSS Variables ──────────────────────────────────────────────── */
:root {
  /* Brand */
  --gold:           #D4A017;
  --gold-light:     #EDBA22;
  --gold-dim:       #B8901A;
  --gold-soft:      rgba(212, 160, 23, 0.10);
  --gold-border:    rgba(212, 160, 23, 0.22);
  --gold-glow:      rgba(212, 160, 23, 0.18);

  /* Backgrounds */
  --bg-body:        #0b0d12;
  --bg-sidebar:     #080a0e;
  --bg-card:        #111318;
  --bg-elevated:    #181b23;
  --bg-input:       rgba(255, 255, 255, 0.04);
  --bg-input-focus: rgba(255, 255, 255, 0.07);

  /* Text */
  --text-primary:   #eef0f6;
  --text-secondary: #9ca3af;
  --text-muted:     #6b7280;
  --text-dim:       #4b5563;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-medium:  rgba(255, 255, 255, 0.11);

  /* Layout */
  --sidebar-w:      250px;
  --topbar-h:       64px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.28);
  --shadow-md:  0 4px 18px rgba(0, 0, 0, 0.42);
  --shadow-lg:  0 12px 48px rgba(0, 0, 0, 0.58);
  --shadow-gold: 0 4px 16px rgba(212, 160, 23, 0.28);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Status */
  --s-pending:   #f59e0b;
  --s-confirmed: #38bdf8;
  --s-completed: #4ade80;
  --s-cancelled: #6b7280;
  --s-noshow:    #6b7280;

  /* Transitions */
  --t-fast:   .14s ease;
  --t-base:   .22s ease;
  --t-slow:   .35s ease;
}

/* ── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform var(--t-base);
}

/* Gold accent line at top */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 80%);
  z-index: 1;
}

/* ── Brand ── */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 17px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.sidebar-brand:hover { background: rgba(255,255,255,.02); }

.brand-logo {
  width: 34px; height: 34px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.sidebar-brand:hover .brand-logo {
  background: rgba(212,160,23,.16);
  box-shadow: 0 0 12px rgba(212,160,23,.15);
}

.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.18rem;
  letter-spacing: 2.5px;
  color: var(--text-primary);
}
.brand-sub {
  font-size: .58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
  font-weight: 600;
}

/* ── Nav ── */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 6px;
}

.sidebar-section {
  padding: 18px 18px 4px;
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  user-select: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .845rem;
  font-weight: 500;
  border-left: 2.5px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.sidebar-link i {
  font-size: .93rem;
  width: 17px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.sidebar-link.active {
  background: var(--gold-soft);
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
}
.sidebar-link.active i { color: var(--gold); }

/* ── Footer ── */
.sidebar-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 6px 0 4px;
  flex-shrink: 0;
}
.sidebar-link-danger {
  color: #f87171 !important;
  border-left-color: transparent !important;
}
.sidebar-link-danger:hover {
  background: rgba(239, 68, 68, 0.07) !important;
  color: #fca5a5 !important;
}

/* ── Mobile overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1030;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t-base);
}
.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════
   MAIN WRAPPER + TOPBAR
   ════════════════════════════════════════════════════════════════ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin var(--t-base);
}

.topbar {
  height: var(--topbar-h);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 900;
  gap: 14px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px 2px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.sidebar-toggle:hover { color: var(--gold); }
.sidebar-toggle i { font-size: 1.4rem; }

.topbar-title {
  font-weight: 600;
  font-size: .975rem;
  color: var(--text-primary);
  letter-spacing: .2px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 3px 10px;
  border-radius: 20px;
}

.topbar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.topbar-avatar:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.16);
  color: var(--gold);
}

/* ════════════════════════════════════════════════════════════════
   ALERTS (flash messages)
   ════════════════════════════════════════════════════════════════ */
.alert {
  border-radius: var(--r-md);
  font-size: .875rem;
  border-width: 1px;
  animation: fadeSlideIn .3s ease forwards;
}
.alert-success  { border-color: rgba(74, 222, 128, .25); }
.alert-danger   { border-color: rgba(239, 68, 68, .25); }
.alert-warning  { border-color: rgba(245, 158, 11, .25); }
.alert-info     { border-color: rgba(56, 189, 248, .25); }

/* ════════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════════ */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}
.card-dark .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
.card-dark .card-header h5,
.card-dark .card-header h6 { margin-bottom: 0; }
.card-dark .card-body { padding: 22px; }
.card-dark .card-footer {
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  padding: 14px 22px;
}

.card-hoverable {
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  cursor: default;
}
.card-hoverable:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base);
}
.stat-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}
.stat-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -.5px;
}
.stat-label {
  font-size: .775rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Soft icon backgrounds ── */
.bg-gold-soft      { background: rgba(212, 160, 23, 0.12) !important; }
.bg-info-soft      { background: rgba(14,  165, 233, 0.12) !important; }
.bg-success-soft   { background: rgba(34,  197, 94,  0.12) !important; }
.bg-purple-soft    { background: rgba(168, 85,  247, 0.12) !important; }
.bg-secondary-soft { background: rgba(107, 114, 128, 0.12) !important; }
.bg-danger-soft    { background: rgba(239, 68,  68,  0.12) !important; }
.bg-warning-soft   { background: rgba(245, 158, 11,  0.12) !important; }

/* ════════════════════════════════════════════════════════════════
   GOLD UTILITIES
   ════════════════════════════════════════════════════════════════ */
.text-gold   { color: var(--gold) !important; }
.text-purple { color: #a855f7 !important; }
.bg-gold     { background: var(--gold) !important; color: #0b0d12 !important; }
.bg-gold-soft-util { background: var(--gold-soft) !important; }
.border-gold { border-color: var(--gold) !important; }

/* ════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════ */
.btn-gold {
  background: var(--gold);
  color: #0b0d12;
  font-weight: 600;
  border: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: #0b0d12;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.btn-gold:active { transform: translateY(0); box-shadow: none; }

.btn-outline-gold {
  border: 1px solid var(--gold-border);
  color: var(--gold);
  background: transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn-outline-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

/* ════════════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════════════ */
.table-dark {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(255,255,255,.025);
}
.table-dark th {
  color: var(--text-muted);
  font-size: .71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  border-color: var(--border-subtle);
  padding: 12px 16px;
  white-space: nowrap;
  background: transparent;
}
.table-dark td {
  border-color: var(--border-subtle);
  vertical-align: middle;
  padding: 13px 16px;
  font-size: .875rem;
}
.table-dark tbody tr {
  transition: background var(--t-fast);
}
.table-dark tbody tr:last-child td { border-bottom: none; }
.table-hover .table-dark tbody tr:hover td {
  background: rgba(255,255,255,.025);
}

/* ════════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════════ */
.form-control,
.form-select {
  background: var(--bg-input);
  border-color: var(--border-medium);
  color: var(--text-primary);
  border-radius: var(--r-sm);
  font-size: .875rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-control:hover,
.form-select:hover {
  background: var(--bg-input-focus);
  border-color: rgba(255,255,255,.18);
}
.form-control:focus,
.form-select:focus {
  background: var(--bg-input-focus);
  border-color: var(--gold);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.14);
}
.form-control::placeholder { color: var(--text-muted); }

/* Override Bootstrap dark helpers used in templates */
.form-control.bg-dark,
.form-select.bg-dark {
  background: var(--bg-input) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
}
.form-control.bg-dark:hover,
.form-select.bg-dark:hover {
  background: var(--bg-input-focus) !important;
}
.form-control.bg-dark:focus,
.form-select.bg-dark:focus {
  background: var(--bg-input-focus) !important;
  border-color: var(--gold) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.14) !important;
}
.form-control.border-secondary,
.form-select.border-secondary {
  border-color: var(--border-medium) !important;
}

.form-label {
  font-size: .81rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-text {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.input-group-text {
  background: var(--bg-input);
  border-color: var(--border-medium);
  color: var(--text-muted);
  border-radius: var(--r-sm);
}

/* ════════════════════════════════════════════════════════════════
   STATUS — selects + badges
   ════════════════════════════════════════════════════════════════ */
.status-select {
  border-radius: var(--r-sm) !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.status-pending {
  border-color: rgba(245,158,11,.45) !important;
  color: #fbbf24 !important;
  background: rgba(245,158,11,.06) !important;
}
.status-confirmed {
  border-color: rgba(56,189,248,.45) !important;
  color: #7dd3fc !important;
  background: rgba(56,189,248,.06) !important;
}
.status-completed {
  border-color: rgba(74,222,128,.45) !important;
  color: #4ade80 !important;
  background: rgba(74,222,128,.06) !important;
}
.status-cancelled {
  border-color: rgba(107,114,128,.35) !important;
  color: #9ca3af !important;
  background: rgba(107,114,128,.06) !important;
}
.status-no_show {
  border-color: rgba(107,114,128,.35) !important;
  color: #9ca3af !important;
  background: rgba(107,114,128,.06) !important;
}

/* Global status badge pills */
.badge-status {
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .3px;
  white-space: nowrap;
}
.badge-pending   { background: rgba(245,158,11,.12); color: var(--s-pending); }
.badge-confirmed { background: rgba(56,189,248,.12); color: var(--s-confirmed); }
.badge-completed { background: rgba(74,222,128,.12); color: var(--s-completed); }
.badge-cancelled { background: rgba(107,114,128,.12); color: var(--s-cancelled); }
.badge-no_show   { background: rgba(107,114,128,.12); color: var(--s-noshow); }

/* ════════════════════════════════════════════════════════════════
   EMPTY STATES
   ════════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}
.empty-icon {
  width: 66px; height: 66px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  color: rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

/* ════════════════════════════════════════════════════════════════
   PAGE HEADER (padrão consistente entre páginas)
   ════════════════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 26px;
}
.page-header-title h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-primary);
  letter-spacing: .1px;
}
.page-header-meta {
  font-size: .79rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════
   AVATARS
   ════════════════════════════════════════════════════════════════ */
.avatar-xl {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0b0d12;
}

.customer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,160,23,.8), rgba(184,144,26,.8));
  display: flex; align-items: center; justify-content: center;
  font-size: .76rem;
  font-weight: 800;
  color: #0b0d12;
  border: 1.5px solid rgba(212,160,23,.25);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   PROGRESS
   ════════════════════════════════════════════════════════════════ */
.progress {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 4px;
}
.progress-bar-gold { background: var(--gold) !important; }

/* ════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(212,160,23,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 18% 82%, rgba(212,160,23,.04) 0%, transparent 40%),
    var(--bg-body);
  padding: 24px;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideUp .45s ease forwards;
}
.login-brand { text-align: center; margin-bottom: 36px; }
.login-icon-wrap {
  width: 56px; height: 56px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.65rem;
  color: var(--gold);
}
.login-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1;
}
.login-subtitle {
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 7px;
}

/* Login form specifics */
.ls-1 { letter-spacing: 1px; }
.input-dark {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: var(--text-primary) !important;
}
.input-dark:hover {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.18) !important;
}
.input-dark:focus {
  background: rgba(255,255,255,.07) !important;
  border-color: var(--gold) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 3px rgba(212,160,23,.16) !important;
}
.input-dark::placeholder { color: #374151; }

.lock-banner {
  background: rgba(212,160,23,.08);
  border: 1px solid rgba(212,160,23,.25);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: .84rem;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.alert-sm { font-size: .84rem; border-radius: var(--r-md); }

/* ════════════════════════════════════════════════════════════════
   ERROR PAGES
   ════════════════════════════════════════════════════════════════ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 40px 20px;
}
.error-page-full { min-height: 100vh; background: var(--bg-body); }
.error-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: 8px;
}
.error-icon { font-size: 2.5rem; color: rgba(255,255,255,.14); }

/* ════════════════════════════════════════════════════════════════
   APPOINTMENTS
   ════════════════════════════════════════════════════════════════ */
.appt-row { transition: opacity var(--t-fast); }
.appt-cancelled { opacity: .42; }
.appt-cancelled:hover { opacity: .72; }

/* Filter bar card */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-bar .input-group { min-width: 0; }

/* Date nav buttons */
.btn-date-nav {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}
.btn-date-nav:hover {
  background: var(--bg-input-focus);
  color: var(--gold);
  border-color: var(--gold-border);
}

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page content entrance */
.main-wrapper main > * {
  animation: fadeSlideIn .3s ease both;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .main-wrapper { margin-left: 0; }
  .sidebar-toggle { display: flex; align-items: center; }
  .topbar { padding: 0 16px; }
  .login-card { padding: 36px 28px; }
  .filter-bar { padding: 12px 16px; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header-actions { justify-content: flex-start; }
}

@media (max-width: 576px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .stat-value { font-size: 1.6rem; }
}

/* ════════════════════════════════════════════════════════════════
   MISC UTILITIES
   ════════════════════════════════════════════════════════════════ */
.mw-0 { min-width: 0; }
.fs-inherit { font-size: inherit; }
.cursor-pointer { cursor: pointer; }

/* Modal dark override */
.modal-content.bg-dark {
  background: var(--bg-elevated) !important;
}

/* Breadcrumb dark */
.breadcrumb-dark .breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before { color: var(--text-dim); }
