/* ═══════════════════════════════════════════════════════════════════════════
   SLATE DESIGN SYSTEM — Sistema de Agendamento
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS (Light) ────────────────────────────────────────────── */
:root {
  /* Brand */
  --ds-primary:        #2563eb;
  --ds-primary-hover:  #1d4ed8;
  --ds-primary-light:  #eff6ff;
  --ds-primary-muted:  rgba(37, 99, 235, 0.1);

  /* Accent */
  --ds-accent:         #7c3aed;
  --ds-accent-light:   #f5f3ff;

  /* Semantic */
  --ds-success:        #16a34a;
  --ds-success-light:  #f0fdf4;
  --ds-warning:        #d97706;
  --ds-warning-light:  #fffbeb;
  --ds-danger:         #dc2626;
  --ds-danger-light:   #fef2f2;
  --ds-info:           #0891b2;
  --ds-info-light:     #ecfeff;

  /* Neutrals */
  --ds-gray-50:        #f8fafc;
  --ds-gray-100:       #f1f5f9;
  --ds-gray-200:       #e2e8f0;
  --ds-gray-300:       #cbd5e1;
  --ds-gray-400:       #94a3b8;
  --ds-gray-500:       #64748b;
  --ds-gray-600:       #475569;
  --ds-gray-700:       #334155;
  --ds-gray-800:       #1e293b;
  --ds-gray-900:       #0f172a;

  /* Surface */
  --ds-bg:             #f1f5f9;
  --ds-surface:        #ffffff;
  --ds-surface-alt:    #f8fafc;
  --ds-border:         #e2e8f0;
  --ds-border-strong:  #cbd5e1;

  /* Text */
  --ds-text:           #0f172a;
  --ds-text-secondary: #64748b;
  --ds-text-muted:     #94a3b8;
  --ds-text-inverse:   #ffffff;

  /* Sidebar */
  --ds-sidebar-bg:         #1e293b;
  --ds-sidebar-border:     #334155;
  --ds-sidebar-text:       #cbd5e1;
  --ds-sidebar-text-hover: #f1f5f9;
  --ds-sidebar-active-bg:  rgba(37, 99, 235, 0.2);
  --ds-sidebar-active:     #60a5fa;
  --ds-sidebar-icon:       #64748b;
  --ds-sidebar-header:     #94a3b8;
  --ds-sidebar-width:      250px;

  /* Navbar */
  --ds-navbar-bg:          #ffffff;
  --ds-navbar-border:      #e2e8f0;
  --ds-navbar-height:      60px;

  /* Radius */
  --ds-radius-sm:    6px;
  --ds-radius:       10px;
  --ds-radius-lg:    14px;
  --ds-radius-xl:    20px;
  --ds-radius-full:  9999px;

  /* Shadows */
  --ds-shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --ds-shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --ds-shadow:     0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --ds-shadow-md:  0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.04);
  --ds-shadow-lg:  0 20px 25px rgba(0,0,0,.08), 0 8px 10px rgba(0,0,0,.04);

  /* Transitions */
  --ds-transition: 150ms cubic-bezier(.4,0,.2,1);

  /* Typography */
  --ds-font:       'Inter', system-ui, -apple-system, sans-serif;
  --ds-font-mono:  'JetBrains Mono', 'Fira Code', monospace;
}

/* ─── 2. DESIGN TOKENS (Dark) ─────────────────────────────────────────────── */
[data-bs-theme="dark"] {
  --ds-bg:             #0f172a;
  --ds-surface:        #1e293b;
  --ds-surface-alt:    #162032;
  --ds-border:         #334155;
  --ds-border-strong:  #475569;

  --ds-text:           #f1f5f9;
  --ds-text-secondary: #94a3b8;
  --ds-text-muted:     #64748b;
  --ds-text-inverse:   #0f172a;

  --ds-primary-light:  rgba(37, 99, 235, 0.15);
  --ds-primary-muted:  rgba(37, 99, 235, 0.2);

  --ds-success-light:  rgba(22, 163, 74, 0.15);
  --ds-warning-light:  rgba(217, 119, 6, 0.15);
  --ds-danger-light:   rgba(220, 38, 38, 0.15);
  --ds-info-light:     rgba(8, 145, 178, 0.15);
  --ds-accent-light:   rgba(124, 58, 237, 0.15);

  --ds-sidebar-bg:         #0f172a;
  --ds-sidebar-border:     #1e293b;
  --ds-sidebar-active-bg:  rgba(37, 99, 235, 0.25);

  --ds-navbar-bg:          #1e293b;
  --ds-navbar-border:      #334155;

  --ds-shadow-xs:  0 1px 2px rgba(0,0,0,.3);
  --ds-shadow-sm:  0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --ds-shadow:     0 4px 6px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.3);
  --ds-shadow-md:  0 10px 15px rgba(0,0,0,.4), 0 4px 6px rgba(0,0,0,.3);
  --ds-shadow-lg:  0 20px 25px rgba(0,0,0,.45), 0 8px 10px rgba(0,0,0,.3);
}

/* ─── 3. BASE ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ds-font);
  background-color: var(--ds-bg);
  color: var(--ds-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--ds-transition), color var(--ds-transition);
}

/* ─── 4. SCROLLBAR ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ds-border-strong); border-radius: var(--ds-radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--ds-gray-500); }

/* ─── 5. TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--ds-text); letter-spacing: -0.02em; }
.text-muted { color: var(--ds-text-muted) !important; }
.text-secondary { color: var(--ds-text-secondary) !important; }

/* ─── 6. LAYOUT — APP SHELL ────────────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─── 7. NAVBAR ────────────────────────────────────────────────────────────── */
.app-navbar {
  background-color: var(--ds-navbar-bg) !important;
  border-bottom: 1px solid var(--ds-navbar-border) !important;
  height: var(--ds-navbar-height);
  padding: 0 1.25rem;
  box-shadow: var(--ds-shadow-xs);
  transition: background-color var(--ds-transition), border-color var(--ds-transition);
  z-index: 1030;
}

.app-navbar .navbar-brand {
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: -0.01em;
  color: var(--ds-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.app-navbar .brand-icon {
  width: 28px;
  height: 28px;
  background: var(--ds-primary);
  border-radius: var(--ds-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .75rem;
}

/* ─── 8. SIDEBAR ───────────────────────────────────────────────────────────── */

/* Mobile: offcanvas behavior (Bootstrap default) */
#sidebarMenu {
  background-color: var(--ds-sidebar-bg) !important;
  border-right: 1px solid var(--ds-sidebar-border) !important;
  width: var(--ds-sidebar-width) !important;
  transition: background-color var(--ds-transition);
}

/* Desktop: override offcanvas, render as fixed column */
@media (min-width: 768px) {
  #sidebarMenu {
    position: sticky !important;
    top: 0 !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
    height: calc(100vh - var(--ds-navbar-height));
    max-height: calc(100vh - var(--ds-navbar-height));
    overflow-y: auto;
    flex-shrink: 0;
    display: flex !important;
    flex-direction: column;
  }
}

/* Sidebar inner layout */
#sidebarMenu .offcanvas-body {
  padding: .75rem 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Sidebar header (mobile only) */
#sidebarMenu .offcanvas-header {
  background: rgba(0,0,0,.15);
  border-bottom: 1px solid var(--ds-sidebar-border) !important;
  padding: .875rem 1.25rem;
}
#sidebarMenu .offcanvas-header .offcanvas-title { color: var(--ds-text-inverse); font-weight: 700; font-size: .9rem; }
#sidebarMenu .offcanvas-header .btn-close { filter: invert(1) brightness(2); }

/* Sidebar nav */
#sidebarMenu .nav { padding: 0 .625rem; }
#sidebarMenu .nav-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  border-radius: var(--ds-radius-sm);
  color: var(--ds-sidebar-text) !important;
  font-size: .85rem;
  font-weight: 500;
  transition: background var(--ds-transition), color var(--ds-transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#sidebarMenu .nav-link .bi {
  font-size: 1rem;
  color: var(--ds-sidebar-icon);
  flex-shrink: 0;
  transition: color var(--ds-transition);
}
#sidebarMenu .nav-link:hover {
  background: rgba(255,255,255,.06) !important;
  color: var(--ds-sidebar-text-hover) !important;
}
#sidebarMenu .nav-link:hover .bi { color: var(--ds-sidebar-text-hover); }
#sidebarMenu .nav-link.active {
  background: var(--ds-sidebar-active-bg) !important;
  color: var(--ds-sidebar-active) !important;
}
#sidebarMenu .nav-link.active .bi { color: var(--ds-sidebar-active); }

/* Sidebar section headers */
#sidebarMenu .nav-header {
  display: block;
  padding: .5rem .75rem .25rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ds-sidebar-header) !important;
}

/* ─── 9. MAIN CONTENT ──────────────────────────────────────────────────────── */
main.app-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
  overflow-x: hidden;
}

/* ─── 10. PAGE HEADER ──────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ds-border);
}
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ds-text);
  margin: 0;
  letter-spacing: -0.025em;
}
.page-subtitle {
  font-size: .85rem;
  color: var(--ds-text-secondary);
  margin: .25rem 0 0;
}
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ─── 11. CARDS ────────────────────────────────────────────────────────────── */
.card {
  background-color: var(--ds-surface) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius-lg) !important;
  box-shadow: var(--ds-shadow-sm);
  transition: background-color var(--ds-transition), border-color var(--ds-transition);
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid var(--ds-border) !important;
  padding: .875rem 1.25rem !important;
  font-weight: 600;
  color: var(--ds-text);
}
.card-footer {
  background-color: var(--ds-surface-alt) !important;
  border-top: 1px solid var(--ds-border) !important;
  padding: .75rem 1.25rem !important;
}

/* Stat cards */
.card-stat {
  border-radius: var(--ds-radius-lg) !important;
  border: 1px solid var(--ds-border) !important;
  background-color: var(--ds-surface) !important;
  box-shadow: var(--ds-shadow-sm);
  transition: transform var(--ds-transition), box-shadow var(--ds-transition);
  overflow: hidden;
  position: relative;
}
.card-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-md);
}
.card-stat .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.card-stat .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ds-text);
}
.card-stat .stat-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--ds-text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Colored accents on stat cards */
.card-stat-primary  { border-left: 3px solid var(--ds-primary) !important; }
.card-stat-success  { border-left: 3px solid var(--ds-success) !important; }
.card-stat-warning  { border-left: 3px solid var(--ds-warning) !important; }
.card-stat-danger   { border-left: 3px solid var(--ds-danger) !important; }
.card-stat-info     { border-left: 3px solid var(--ds-info) !important; }

.stat-icon-primary  { background: var(--ds-primary-light); color: var(--ds-primary); }
.stat-icon-success  { background: var(--ds-success-light); color: var(--ds-success); }
.stat-icon-warning  { background: var(--ds-warning-light); color: var(--ds-warning); }
.stat-icon-danger   { background: var(--ds-danger-light);  color: var(--ds-danger); }
.stat-icon-info     { background: var(--ds-info-light);    color: var(--ds-info); }

/* Room cards */
.card-room {
  border-radius: var(--ds-radius-lg) !important;
  transition: transform var(--ds-transition), box-shadow var(--ds-transition);
}
.card-room:hover {
  transform: translateY(-3px);
  box-shadow: var(--ds-shadow-md) !important;
}

/* ─── 12. BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--ds-font);
  font-weight: 500;
  font-size: .85rem;
  border-radius: var(--ds-radius-sm);
  transition: all var(--ds-transition);
  letter-spacing: .01em;
}
.btn-sm { font-size: .8rem; }
.btn-lg { font-size: .95rem; }

.btn-primary {
  background: var(--ds-primary) !important;
  border-color: var(--ds-primary) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--ds-primary-hover) !important;
  border-color: var(--ds-primary-hover) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

.btn-outline-primary {
  color: var(--ds-primary) !important;
  border-color: var(--ds-primary) !important;
}
.btn-outline-primary:hover {
  background: var(--ds-primary) !important;
  color: #fff !important;
}

.btn-outline-secondary {
  color: var(--ds-text-secondary) !important;
  border-color: var(--ds-border-strong) !important;
  background: var(--ds-surface) !important;
}
.btn-outline-secondary:hover {
  background: var(--ds-gray-100) !important;
  border-color: var(--ds-gray-400) !important;
  color: var(--ds-text) !important;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background: var(--ds-surface-alt) !important;
}

/* ─── 13. BADGES ───────────────────────────────────────────────────────────── */
.badge {
  font-size: .7rem;
  font-weight: 600;
  padding: .3em .65em;
  border-radius: var(--ds-radius-full);
  letter-spacing: .03em;
}

/* Semantic status badges */
.badge-confirmed,
.badge.bg-success {
  background-color: var(--ds-success-light) !important;
  color: var(--ds-success) !important;
  border: 1px solid rgba(22, 163, 74, .2);
}
.badge-pending,
.badge.bg-warning {
  background-color: var(--ds-warning-light) !important;
  color: var(--ds-warning) !important;
  border: 1px solid rgba(217, 119, 6, .2);
}
.badge-cancelled,
.badge.bg-danger {
  background-color: var(--ds-danger-light) !important;
  color: var(--ds-danger) !important;
  border: 1px solid rgba(220, 38, 38, .2);
}
.badge.bg-info {
  background-color: var(--ds-info-light) !important;
  color: var(--ds-info) !important;
  border: 1px solid rgba(8, 145, 178, .2);
}
.badge.bg-primary {
  background-color: var(--ds-primary-light) !important;
  color: var(--ds-primary) !important;
  border: 1px solid rgba(37, 99, 235, .2);
}
.badge.bg-secondary {
  background-color: var(--ds-gray-100) !important;
  color: var(--ds-gray-600) !important;
  border: 1px solid var(--ds-border);
}

[data-bs-theme="dark"] .badge-confirmed,
[data-bs-theme="dark"] .badge.bg-success {
  background-color: rgba(22, 163, 74, .2) !important;
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, .2);
}
[data-bs-theme="dark"] .badge-pending,
[data-bs-theme="dark"] .badge.bg-warning {
  background-color: rgba(217, 119, 6, .2) !important;
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, .2);
}
[data-bs-theme="dark"] .badge-cancelled,
[data-bs-theme="dark"] .badge.bg-danger {
  background-color: rgba(220, 38, 38, .2) !important;
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, .2);
}
[data-bs-theme="dark"] .badge.bg-info {
  background-color: rgba(8, 145, 178, .2) !important;
  color: #22d3ee !important;
}
[data-bs-theme="dark"] .badge.bg-primary {
  background-color: rgba(37, 99, 235, .25) !important;
  color: #93c5fd !important;
}
[data-bs-theme="dark"] .badge.bg-secondary {
  background-color: rgba(255,255,255,.08) !important;
  color: var(--ds-text-secondary) !important;
  border-color: var(--ds-border);
}

/* ─── 14. TABLES ───────────────────────────────────────────────────────────── */
.table {
  color: var(--ds-text);
  border-color: var(--ds-border);
  font-size: .875rem;
}
.table > :not(caption) > * > * {
  padding: .75rem 1rem;
  background-color: transparent;
  border-bottom-color: var(--ds-border);
  color: var(--ds-text);
}
.table thead th {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ds-text-secondary);
  background-color: var(--ds-surface-alt);
  border-bottom: 2px solid var(--ds-border) !important;
  white-space: nowrap;
}
.table-hover > tbody > tr:hover > * {
  background-color: var(--ds-primary-muted);
}

/* ─── 15. FORMS ────────────────────────────────────────────────────────────── */
.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ds-text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .375rem;
}
.form-control, .form-select {
  background-color: var(--ds-surface) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius-sm) !important;
  color: var(--ds-text) !important;
  font-size: .875rem;
  transition: border-color var(--ds-transition), box-shadow var(--ds-transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--ds-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15) !important;
  outline: none;
}
.form-control::placeholder { color: var(--ds-text-muted); }
.required-field::after { content: "*"; color: var(--ds-danger); margin-left: 2px; }

/* ─── 16. ALERTS ───────────────────────────────────────────────────────────── */
.alert {
  border-radius: var(--ds-radius) !important;
  border: 1px solid;
  font-size: .875rem;
}
.alert-success  { background: var(--ds-success-light) !important; border-color: rgba(22,163,74,.2) !important; color: #166534 !important; }
.alert-warning  { background: var(--ds-warning-light) !important; border-color: rgba(217,119,6,.2) !important; color: #92400e !important; }
.alert-danger   { background: var(--ds-danger-light) !important;  border-color: rgba(220,38,38,.2) !important;  color: #991b1b !important; }
.alert-info     { background: var(--ds-info-light) !important;    border-color: rgba(8,145,178,.2) !important;   color: #155e75 !important; }

[data-bs-theme="dark"] .alert-success  { color: #86efac !important; background: rgba(22,163,74,.15) !important; }
[data-bs-theme="dark"] .alert-warning  { color: #fcd34d !important; background: rgba(217,119,6,.15) !important; }
[data-bs-theme="dark"] .alert-danger   { color: #fca5a5 !important; background: rgba(220,38,38,.15) !important; }
[data-bs-theme="dark"] .alert-info     { color: #67e8f9 !important; background: rgba(8,145,178,.15) !important; }

/* ─── 17. MODALS ───────────────────────────────────────────────────────────── */
.modal-content {
  background: var(--ds-surface) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius-lg) !important;
  box-shadow: var(--ds-shadow-lg);
}
.modal-header {
  border-bottom: 1px solid var(--ds-border) !important;
  padding: 1.25rem 1.5rem;
}
.modal-footer {
  border-top: 1px solid var(--ds-border) !important;
  padding: 1rem 1.5rem;
}
.modal-title { font-weight: 700; color: var(--ds-text); }
.modal-backdrop { backdrop-filter: blur(2px); }

/* ─── 18. DROPDOWN ─────────────────────────────────────────────────────────── */
.dropdown-menu {
  background-color: var(--ds-surface) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius) !important;
  box-shadow: var(--ds-shadow-md);
  padding: .375rem;
  min-width: 180px;
}
.dropdown-item {
  border-radius: var(--ds-radius-sm);
  color: var(--ds-text) !important;
  font-size: .85rem;
  padding: .45rem .75rem;
  transition: background var(--ds-transition);
}
.dropdown-item:hover {
  background-color: var(--ds-primary-muted) !important;
  color: var(--ds-primary) !important;
}
.dropdown-item.text-danger:hover {
  background-color: var(--ds-danger-light) !important;
  color: var(--ds-danger) !important;
}
.dropdown-divider { border-color: var(--ds-border) !important; margin: .25rem 0; }

/* ─── 19. FULLCALENDAR ─────────────────────────────────────────────────────── */
.fc {
  font-family: var(--ds-font);
  font-size: .875rem;
  color: var(--ds-text);
}
.fc .fc-toolbar { padding: 1rem 1.25rem; }
.fc .fc-toolbar-title { font-size: 1.1rem; font-weight: 700; color: var(--ds-text); }
.fc .fc-button-primary {
  background-color: var(--ds-primary) !important;
  border-color: var(--ds-primary) !important;
  border-radius: var(--ds-radius-sm) !important;
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .75rem;
}
.fc .fc-button-primary:hover {
  background-color: var(--ds-primary-hover) !important;
  border-color: var(--ds-primary-hover) !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background-color: var(--ds-primary-hover) !important;
}
.fc-theme-standard td, .fc-theme-standard th, .fc-theme-standard .fc-scrollgrid {
  border-color: var(--ds-border) !important;
}
.fc .fc-col-header-cell-cushion { color: var(--ds-text-secondary); font-weight: 600; font-size: .75rem; text-transform: uppercase; }
.fc .fc-daygrid-day-number { color: var(--ds-text-secondary); font-size: .8rem; }
.fc .fc-daygrid-day:hover .fc-daygrid-day-frame { background: var(--ds-primary-muted); }
.fc .fc-event {
  border-radius: var(--ds-radius-sm);
  border: none !important;
  font-size: .75rem;
  padding: 1px 5px;
  cursor: pointer;
}
.fc .fc-daygrid-day-frame { background: var(--ds-surface); transition: background var(--ds-transition); }
.fc .fc-today-button { background: var(--ds-surface) !important; border-color: var(--ds-border) !important; color: var(--ds-primary) !important; }
.fc .fc-today-button:hover { background: var(--ds-primary-muted) !important; }
.fc .fc-highlight { background: var(--ds-primary-muted) !important; }
[data-bs-theme="dark"] .fc .fc-daygrid-day-frame { background: var(--ds-surface); }
[data-bs-theme="dark"] .fc .fc-col-header-cell { background: var(--ds-surface-alt); }

/* ─── 20. AVATAR ───────────────────────────────────────────────────────────── */
.avatar-circle {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-accent));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .3);
}
.avatar-initials {
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ─── 21. LOGIN PAGE ───────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f0f4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
[data-bs-theme="dark"] .login-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--ds-radius-xl) !important;
  box-shadow: var(--ds-shadow-lg) !important;
  border: 1px solid var(--ds-border) !important;
  overflow: hidden;
}
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}
.login-logo .brand-icon-lg {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-accent));
  border-radius: var(--ds-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: .875rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .3);
}
.login-logo h1 { font-size: 1.25rem; font-weight: 800; color: var(--ds-text); margin: 0; }
.login-logo p  { font-size: .8rem; color: var(--ds-text-secondary); margin: .125rem 0 0; }

/* ─── 22. FOOTER ───────────────────────────────────────────────────────────── */
.app-footer {
  background: var(--ds-surface) !important;
  border-top: 1px solid var(--ds-border) !important;
  padding: .75rem 1.5rem;
  font-size: .75rem;
  color: var(--ds-text-muted);
  text-align: center;
}

/* ─── 23. LIST GROUPS ──────────────────────────────────────────────────────── */
.list-group-item {
  background-color: var(--ds-surface) !important;
  border-color: var(--ds-border) !important;
  color: var(--ds-text);
}
.list-group-item.active {
  background-color: var(--ds-primary) !important;
  border-color: var(--ds-primary) !important;
  color: #fff !important;
}

/* ─── 24. PAGINATION ───────────────────────────────────────────────────────── */
.page-link {
  background-color: var(--ds-surface);
  border-color: var(--ds-border);
  color: var(--ds-primary);
  font-size: .85rem;
}
.page-link:hover { background: var(--ds-primary-muted); border-color: var(--ds-border); color: var(--ds-primary); }
.page-item.active .page-link { background: var(--ds-primary) !important; border-color: var(--ds-primary) !important; }
.page-item.disabled .page-link { background: var(--ds-surface-alt); color: var(--ds-text-muted); }

/* ─── 25. BREADCRUMB ───────────────────────────────────────────────────────── */
.breadcrumb { font-size: .8rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ds-text-muted); }
.breadcrumb-item a { color: var(--ds-primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--ds-text-secondary); }

/* ─── 26. DESCRIPTIONS / DETAIL LISTS ─────────────────────────────────────── */
.detail-row { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--ds-border); align-items: baseline; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: .75rem; font-weight: 600; color: var(--ds-text-secondary); text-transform: uppercase; letter-spacing: .05em; min-width: 120px; flex-shrink: 0; }
.detail-value { font-size: .875rem; color: var(--ds-text); }

/* ─── 27. SECTION DIVIDER ──────────────────────────────────────────────────── */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ds-text-muted);
  margin: .5rem 0 .25rem .5rem;
}

/* ─── 28. ANIMATIONS ───────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .25s ease-out both; }

/* ─── 29. UTILS ────────────────────────────────────────────────────────────── */
.border-bottom { border-bottom: 1px solid var(--ds-border) !important; }
.border-top    { border-top: 1px solid var(--ds-border) !important; }
.border        { border: 1px solid var(--ds-border) !important; }
.bg-light      { background-color: var(--ds-surface-alt) !important; }
.bg-body       { background-color: var(--ds-bg) !important; }
.text-primary  { color: var(--ds-primary) !important; }
.text-success  { color: var(--ds-success) !important; }
.text-warning  { color: var(--ds-warning) !important; }
.text-danger   { color: var(--ds-danger) !important; }
.text-info     { color: var(--ds-info) !important; }
.rounded       { border-radius: var(--ds-radius) !important; }
.rounded-lg    { border-radius: var(--ds-radius-lg) !important; }

/* ─── 30. PRINT ────────────────────────────────────────────────────────────── */
@media print {
  #sidebarMenu, .app-navbar, .app-footer, .btn, .page-actions { display: none !important; }
  body { background: white !important; }
  .card { border: 1px solid #ccc !important; box-shadow: none !important; }
  main.app-main { padding: 0; }
}
