/* theme.css — import once */

/* Prevent flash of unstyled content by ensuring immediate theme availability */
html {
  /* Default to light theme immediately */
  --c-primary: #3c71a2;
  --c-primary-light: #638db5;
  --c-primary-dark: #2f5989;
  --c-bg: #f5f8fa;
  --c-bg-muted: #d8e3ec;
  --c-card: #ffffff;
  --c-card-muted: #f5f8fa;
  --c-border: #7aabd8;
  --c-border-light: #9cbddc;
  --c-text: #1a1a1a;
  --c-text-muted: #616161;
  --c-btn-bg: #3c71a2;
  --c-btn-bg-hover: #638db5;
  --c-btn-bg-pressed: #2f5989;
  --c-btn-text: #ffffff;
  --c-btn-border: #3c71a2;
}

/* Smooth theme transitions */
*,
*::before,
*::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root {
  /* brand */
  --c-primary: #3c71a2; /* step 1 */
  --c-primary-light: #638db5; /* step 2 */
  --c-primary-dark: #2f5989; /* ~20 % darker for contrast */
  --c-primary-rgb: 60, 113, 162; /* RGB values for opacity effects */

  /* neutrals */
  --c-bg: #f5f8fa; /* step 6 */
  --c-bg-muted: #d8e3ec; /* step 5 */
  --c-card: #ffffff;
  --c-card-muted: #f5f8fa;
  --c-border: #7aabd8; /* step 4 */
  --c-border-light: #9cbddc; /* step 4 */
  --c-text: #1a1a1a;
  --c-text-muted: #616161;

  /* buttons */
  --c-btn-bg: #3c71a2;
  --c-btn-bg-hover: #638db5;
  --c-btn-bg-pressed: #2f5989;
  --c-btn-text: #ffffff;
  --c-btn-border: #3c71a2;

  /* accent backgrounds */
  --c-accent-blue: #d8e3ec; /* step 5 */
  --c-accent-green: #e8f5e9;
  --c-accent-purple: #f3e5f5;
  --c-accent-pink: #fce4ec;
  --c-accent-orange: #fff3e0;

  --c-accent-blue-dark: #99c1e3; /* step 5 */
  --c-accent-green-dark: #aaeeb0;
  --c-accent-purple-dark: #ecbdf3;
  --c-accent-pink-dark: #ffb3cc;
  --c-accent-orange-dark: #fbddad;

  /* semantic */
  --c-success: #2e7d32;
  --c-error: #d32f2f;

  /* gradients */
  --c-gradient-primary: linear-gradient(135deg, #3c71a2 0%, #638db5 50%, #9cbddc 100%);
  --c-gradient-secondary: linear-gradient(135deg, #2f5989 0%, #3c71a2 50%, #638db5 100%);
  --c-gradient-tertiary: linear-gradient(135deg, #d8e3ec 0%, #b1c6da 50%, #99c1e3 100%);
  --c-gradient-accent: linear-gradient(135deg, #3c71a2 0%, #2e7d32 100%);
  --c-gradient-hero: linear-gradient(135deg, rgba(60, 113, 162, 0.1) 0%, rgba(99, 141, 181, 0.05) 100%);

  /* shadows */
  --shadow-sm: 0 2px 4px rgba(60, 113, 162, 0.1);
  --shadow-md: 0 4px 12px rgba(60, 113, 162, 0.15);
  --shadow-lg: 0 8px 24px rgba(60, 113, 162, 0.2);
  --shadow-xl: 0 16px 48px rgba(60, 113, 162, 0.25);
  --shadow-glow: 0 0 20px rgba(60, 113, 162, 0.3);

  /* basics */
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] {
  --c-primary: #4da3e6;
  --c-primary-light: #7ecbff;
  --c-primary-dark: #1e74c3;
  --c-primary-rgb: 77, 163, 230; /* RGB values for dark theme opacity effects */

  --c-bg: #1a1a1a;
  --c-bg-muted: #252525;
  --c-card: #2a2a2a;
  --c-card-muted: #333333;
  --c-border: #3a3a3a;
  --c-text: #f0f0f0;
  --c-text-muted: #c0c0c0;

  --c-btn-bg: #4da3e6;
  --c-btn-bg-hover: #7ecbff;
  --c-btn-bg-pressed: #3a8ac9;
  --c-btn-text: #000;
  --c-btn-border: #4da3e6;

  --c-accent-blue: #1e2a37;
  --c-accent-green: #1a2e1a;
  --c-accent-purple: #2a1a37;
  --c-accent-pink: #371a2a;
  --c-accent-orange: #372a1a;

  /* Additional dark backgrounds for visual depth */
  --c-bg-deep: #202020;
  --c-bg-deeper: #151515;
  --c-card-deep: #252525;
  --c-border-dark: #353535;

  --c-success: #42b35e;
  --c-error: #ef6e6e;

  --c-gradient-primary: linear-gradient(135deg, #4da3e6 0%, #7ecbff 50%, #a3d4ff 100%);
  --c-gradient-secondary: linear-gradient(135deg, #1e74c3 0%, #4da3e6 50%, #7ecbff 100%);
  --c-gradient-tertiary: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #4a4a4a 100%);
  --c-gradient-accent: linear-gradient(135deg, #4da3e6 0%, #42b35e 100%);
  --c-gradient-hero: linear-gradient(135deg, rgba(77, 163, 230, 0.15) 0%, rgba(126, 203, 255, 0.05) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(77, 163, 230, 0.4);
}

/* ===== COMPREHENSIVE THEME UTILITIES ===== */
/* These utilities ensure consistent theming across all components */

/* Form Elements */
:root {
  /* Form input colors */
  --c-input-bg: #ffffff;
  --c-input-bg-focus: #ffffff;
  --c-input-border: #d1d5db;
  --c-input-border-focus: #3c71a2;
  --c-input-text: #1a1a1a;
  --c-input-placeholder: #9ca3af;

  /* Table colors */
  --c-table-header-bg: #f3f4f6;
  --c-table-header-text: #6b7280;
  --c-table-row-bg: #ffffff;
  --c-table-row-hover: #f9fafb;
  --c-table-border: #e5e7eb;

  /* Status badge colors */
  --c-status-pending-bg: #fef3c7;
  --c-status-pending-text: #92400e;
  --c-status-confirmed-bg: #d1fae5;
  --c-status-confirmed-text: #065f46;
  --c-status-completed-bg: #dbeafe;
  --c-status-completed-text: #1e40af;
  --c-status-cancelled-bg: #fee2e2;
  --c-status-cancelled-text: #991b1b;

  /* Action button colors */
  --c-btn-edit-bg: #3c71a2;
  --c-btn-edit-hover: #2f5989;
  --c-btn-delete-bg: #dc2626;
  --c-btn-delete-hover: #991b1b;

  /* Quick action button colors */
  --c-quick-action-bg: #d8e3ec;
  --c-quick-action-hover: #b1c6da;
  --c-quick-action-border: #7aabd8;

  /* List item colors */
  --c-list-item-bg: #f3f4f6;
  --c-list-item-hover: #e5e7eb;
  --c-list-item-border: #e5e7eb;

  /* Map/Chart card colors */
  --c-map-placeholder-bg: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  --c-map-placeholder-text: #6b7280;

  /* Login-specific surfaces */
  --c-login-card-bg: #ffffff;
  --c-login-card-border: rgba(60, 113, 162, 0.25);
  --c-login-input-bg: #f8fbff;
  --c-login-input-border: #9cbddc;
  --c-login-input-focus: #3c71a2;
  --c-login-shadow: 0 25px 50px rgba(60, 113, 162, 0.15);
}

[data-theme='dark'] {
  /* Form input colors - dark theme */
  --c-input-bg: #252525;
  --c-input-bg-focus: #2a2a2a;
  --c-input-border: #3a3a3a;
  --c-input-border-focus: #4da3e6;
  --c-input-text: #e0e0e0;
  --c-input-placeholder: #6b7280;

  /* Table colors - dark theme */
  --c-table-header-bg: #1f1f1f;
  --c-table-header-text: #d0d0d0;
  --c-table-row-bg: #2a2a2a;
  --c-table-row-hover: #333333;
  --c-table-border: #404040;

  /* Status badge colors - dark theme (higher contrast) */
  --c-status-pending-bg: rgba(251, 191, 36, 0.2);
  --c-status-pending-text: #fbbf24;
  --c-status-confirmed-bg: rgba(34, 197, 94, 0.2);
  --c-status-confirmed-text: #4ade80;
  --c-status-completed-bg: rgba(59, 130, 246, 0.2);
  --c-status-completed-text: #60a5fa;
  --c-status-cancelled-bg: rgba(239, 68, 68, 0.2);
  --c-status-cancelled-text: #f87171;

  /* Action button colors - dark theme */
  --c-btn-edit-bg: #4da3e6;
  --c-btn-edit-hover: #7ecbff;
  --c-btn-delete-bg: #ef4444;
  --c-btn-delete-hover: #f87171;

  /* Quick action button colors - dark theme */
  --c-quick-action-bg: #252525;
  --c-quick-action-hover: #1e2a37;
  --c-quick-action-border: #353535;

  /* List item colors - dark theme */
  --c-list-item-bg: #353535;
  --c-list-item-hover: #404040;
  --c-list-item-border: #505050;

  /* Map/Chart card colors - dark theme */
  --c-map-placeholder-bg: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
  --c-map-placeholder-text: #6b7280;

  /* Login-specific surfaces */
  --c-login-card-bg: #1f1f1f;
  --c-login-card-border: rgba(77, 163, 230, 0.4);
  --c-login-input-bg: #121820;
  --c-login-input-border: rgba(126, 203, 255, 0.6);
  --c-login-input-focus: #7ecbff;
  --c-login-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
}

/* ===== ENHANCED CARD CLASSES ===== */

/* Card modifiers for different styling */
.card.highlighted {
  border: 2px solid var(--c-primary);
  background: var(--c-card);
}

.card.secondary {
  background: var(--c-bg-muted);
  border-color: var(--c-border-light);
}

/* Calendar container theming */
#calendar {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--c-card);
  border: 1px solid var(--c-border);
}

/* FullCalendar Header Toolbar */
.fc-header-toolbar {
  background: var(--c-gradient-primary) !important;
  padding: 1rem !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  border: none !important;
  margin-bottom: 0 !important;
}

/* Dark theme header with softer gradient */
[data-theme='dark'] .fc-header-toolbar {
  background: linear-gradient(135deg, #2a3a4a 0%, #3a4a5a 50%, #2a3a4a 100%) !important;
}

.fc-toolbar-title {
  color: white !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.fc-button {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Dark theme buttons with better contrast */
[data-theme='dark'] .fc-button {
  background: rgba(77, 163, 230, 0.2) !important;
  border: 1px solid rgba(77, 163, 230, 0.4) !important;
}

[data-theme='dark'] .fc-button:hover {
  background: rgba(77, 163, 230, 0.3) !important;
  border-color: rgba(77, 163, 230, 0.6) !important;
}

.fc-button:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.fc-button:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

.fc-button-active {
  background: var(--c-primary-dark) !important;
  border-color: var(--c-primary-dark) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Today header highlighting - Day/date label should be highlighted blue and glow */
.fc-col-header-cell.fc-today-header {
  position: relative !important;
  background: #3b82f6 !important;
  color: white !important;
  font-weight: bold !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  animation: glow-today-blue 2s ease-in-out infinite !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6) !important;
}

@keyframes glow-today-blue {
  0%,
  100% {
    opacity: 0.85;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.9);
  }
}

/* Calendar grid styling */
.fc-timegrid-col {
  background: var(--c-card) !important;
  border-color: var(--c-border-light) !important;
}

.fc-timegrid-slot {
  border-color: var(--c-border-light) !important;
  background: var(--c-card) !important;
}

.fc-timegrid-slot:hover {
  background: var(--c-bg-muted) !important;
  transition: background-color 0.2s ease !important;
}

/* Business hours styling - MAKE IT OBVIOUS! 🌟 */
.fc-non-business {
  background: rgba(0, 0, 0, 0.08) !important;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.03) 10px, rgba(0, 0, 0, 0.03) 20px) !important;
  opacity: 1 !important;
}

[data-theme='dark'] .fc-non-business {
  background: rgba(255, 255, 255, 0.05) !important;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px) !important;
}

/* Time labels */
.fc-timegrid-slot-label {
  color: var(--c-text-muted) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
}

/* Day headers */
.fc-col-header-cell {
  background: var(--c-card) !important;
  border-color: var(--c-border) !important;
  font-weight: 600 !important;
  color: var(--c-text) !important;
}

.fc-col-header-cell-cushion {
  padding: 1rem 0.5rem !important;
  color: var(--c-text) !important;
}

/* Fix the upper left corner cell (time axis) */
.fc-timegrid-axis,
.fc-timegrid-axis-frame {
  background: var(--c-card) !important;
  border-color: var(--c-border) !important;
}

/* Fix any remaining white areas in calendar structure */
.fc-scrollgrid,
.fc-scrollgrid-section,
.fc-scrollgrid-section-header,
.fc-scrollgrid-section-body {
  background: var(--c-card) !important;
}

.fc-scrollgrid-sync-table {
  background: transparent !important;
}

/* Today column highlighting */
.fc-day-today {
  background: linear-gradient(180deg, rgba(var(--c-primary-rgb), 0.05), rgba(var(--c-primary-rgb), 0.02)) !important;
  border-left: 3px solid var(--c-primary) !important;
  border-right: 3px solid var(--c-primary) !important;
}

/* Closed days (holidays) - dark grey background */
.fc-day-closed {
  background: #4b5563 !important; /* Dark grey */
  position: relative;
}

.fc-day-closed .fc-daygrid-day-frame,
.fc-day-closed .fc-timegrid-col-frame {
  background: #4b5563 !important;
  opacity: 0.7 !important;
}

/* Prevent interactions on closed days */
.fc-day-closed .fc-timegrid-slot {
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* Dark theme support for closed days */
[data-theme='dark'] .fc-day-closed {
  background: #1f2937 !important;
}

[data-theme='dark'] .fc-day-closed .fc-daygrid-day-frame,
[data-theme='dark'] .fc-day-closed .fc-timegrid-col-frame {
  background: #1f2937 !important;
}

/* Modified hours days - subtle blue tint */
.fc-day-modified-hours {
  background: rgba(59, 130, 246, 0.08) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

[data-theme='dark'] .fc-day-modified-hours {
  background: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

/* NOW INDICATOR - Highlights the current time slot 👑 */
.fc-timegrid-now-indicator-container {
  /* Make the container span the full slot height (approximately 42px per 30-min slot) */
  height: 42px !important;
  background: linear-gradient(180deg, rgba(var(--c-error-rgb, 211, 47, 47), 0.15), rgba(var(--c-error-rgb, 211, 47, 47), 0.08)) !important;
  border-left: 3px solid var(--c-error) !important;
  border-right: 3px solid var(--c-error) !important;
  margin-top: -21px !important; /* Center the highlight on the current time */
}

.fc-timegrid-now-indicator-line {
  border-color: var(--c-error) !important;
  border-width: 2px !important;
  box-shadow: 0 0 8px var(--c-error) !important;
  position: relative !important;
  top: 21px !important;
}

.fc-timegrid-now-indicator-line::before {
  content: '⚡ NOW' !important;
  position: absolute !important;
  right: -50px !important;
  top: 0px !important;
  background: var(--c-error) !important;
  color: white !important;
  padding: 2px 8px !important;
  border-radius: var(--radius) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  animation: pulse 1.5s ease-in-out infinite !important;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3) !important;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.5);
  }
}

.fc-timegrid-now-indicator-arrow {
  border-left-color: var(--c-error) !important;
  border-width: 6px !important;
  filter: drop-shadow(2px 0 4px rgba(211, 47, 47, 0.3)) !important;
}

/* Event styling */
.fc-event {
  border-radius: var(--radius) !important;
  border: none !important;
  font-weight: 600 !important;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.fc-event:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Available time slots (custom styling) */
.fc-timegrid-event.available-slot {
  background: var(--c-gradient-accent) !important;
  border: 1px solid var(--c-success) !important;
}

/* Hide time text on available slots - cleaner appearance */
.fc-timegrid-event.available-slot .fc-event-time {
  display: none !important;
}

/* Hide time text on selection mirror (the dragging/selection preview) */
.fc-event-mirror .fc-event-time,
.fc-event-mirror .fc-event-title {
  display: none !important;
}

/* Fix selection mirror sizing to fill slots exactly during drag - uses theme button color */
.fc-event-mirror {
  margin: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  background: var(--c-btn-bg) !important;
  opacity: 1 !important;
  border: 2px solid var(--c-btn-bg-pressed) !important;
}

/* Ensure the timegrid mirror fills the cell width - expand to match harness */
.fc-timegrid-event.fc-event-mirror {
  left: -2px !important;
  right: -2px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  inset-inline: -2px !important;
  width: calc(100% + 4px) !important;
}

/* Make event harness not constrain the mirror */
.fc-timegrid-event-harness:has(.fc-event-mirror) {
  overflow: visible !important;
}

.fc-timegrid-event.booked-slot {
  background: linear-gradient(135deg, var(--c-error), #f44336) !important;
  border: 1px solid var(--c-error) !important;
}

.fc-bg-event.free-slot-highlight {
  background: rgba(34, 197, 94, 0.12) !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
  border-radius: var(--radius) !important;
  box-shadow: inset 0 1px 3px rgba(34, 197, 94, 0.1) !important;
}

[data-theme='dark'] .fc-bg-event.free-slot-highlight {
  background: rgba(34, 197, 94, 0.08) !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
  box-shadow: inset 0 1px 3px rgba(34, 197, 94, 0.05) !important;
}

/* Privacy mode events - RED BLOCKS FOR CLIENT PRIVACY! 🔒 */
.fc-event.privacy-mode {
  background: #ef4444 !important;
  border: 2px solid #dc2626 !important;
  color: transparent !important;
  text-shadow: none !important;
  cursor: default !important;
  opacity: 0.9 !important;
}

/* Selection/hover highlight styling - uses theme button hover color */
.fc-highlight {
  background: var(--c-btn-bg-hover) !important;
  opacity: 0.3 !important;
  border: 1px dashed var(--c-btn-bg) !important;
  border-radius: var(--radius) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .fc-toolbar-title {
    font-size: 1.2rem !important;
  }

  .fc-button {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8rem !important;
  }

  .fc-timegrid-now-indicator-line::before {
    right: -35px !important;
    font-size: 0.6rem !important;
    padding: 1px 4px !important;
  }
}

/* Dark theme specific calendar adjustments */
[data-theme='dark'] #calendar {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

[data-theme='dark'] .fc-timegrid-slot {
  border-color: #333a41 !important;
}

[data-theme='dark'] .fc-col-header-cell {
  background: var(--c-card-muted) !important;
  border-color: #333a41 !important;
}

/* Today header cell in dark mode - highlighted blue and glowing */
[data-theme='dark'] .fc-col-header-cell.fc-today-header {
  background: var(--c-primary) !important;
  color: white !important;
  font-weight: bold !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  animation: glow-today-blue 2s ease-in-out infinite !important;
}

[data-theme='dark'] .fc-day-today {
  background: linear-gradient(180deg, rgba(77, 163, 230, 0.1), rgba(77, 163, 230, 0.05)) !important;
  border-left-color: var(--c-primary) !important;
  border-right-color: var(--c-primary) !important;
}

/* Button modifiers */
.button.secondary {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.button.secondary:hover {
  background: var(--c-primary);
  color: white;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--c-gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
}

.card-glow:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Premium Card - Maximum luxury vibes */
.card-gradient {
  background: var(--c-primary);
  color: white;
  border: none;
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3), 0 10px 10px -5px rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-gradient:hover {
  background: var(--c-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 40px rgba(59, 130, 246, 0.3);
}

/* ===== LEGENDARY BUTTON CLASSES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Primary Button - The main character with SICK glow */
.btn-primary {
  background: var(--c-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px 0 rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.3), 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Ghost Button - Elegant and subtle with glow */
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ghost:hover {
  background: var(--c-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 0 rgba(59, 130, 246, 0.3), 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Glow Button - For that special sauce */
.btn-glow {
  background: var(--c-gradient-primary);
  color: var(--c-btn-text);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  font-size: 1rem;
  font-weight: 700;
}

.btn-glow:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  filter: brightness(1.1);
}

/* Glass Button - Ultra modern */
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
}

[data-theme='dark'] .btn-glass {
  background: rgba(30, 30, 30, 0.3);
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Gradient Button - Maximum impact */
.btn-gradient {
  background: var(--c-gradient-accent);
  color: var(--c-btn-text);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
}

.btn-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--c-gradient-primary);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}

.btn-gradient:hover::after {
  opacity: 1;
}

.btn-gradient:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* Icon Button - Clean and functional */
.btn-icon {
  background: var(--c-card);
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  padding: 0.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 2.5rem;
  height: 2.5rem;
}

.btn-icon:hover {
  background: var(--c-primary);
  color: var(--c-btn-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Size variants */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
}

/* Full width */
.btn-full {
  width: 100%;
}

/* ===== EPIC ANIMATION & EFFECT CLASSES ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: var(--shadow-lg);
  }
  50% {
    box-shadow: var(--shadow-glow);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Animation utility classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-in {
  animation: slide-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale-in {
  animation: scale-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
  filter: brightness(1.05);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

/* Shimmer effect for loading states */
.shimmer {
  background: linear-gradient(90deg, var(--c-bg-muted) 25%, var(--c-card) 50%, var(--c-bg-muted) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Glassmorphism utilities */
.glass {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme='dark'] .glass {
  background: rgba(30, 30, 30, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.text-gradient {
  background: var(--c-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Shadow utilities */
.shadow-soft {
  box-shadow: var(--shadow-sm);
}

.shadow-medium {
  box-shadow: var(--shadow-md);
}

.shadow-hard {
  box-shadow: var(--shadow-lg);
}

.shadow-epic {
  box-shadow: var(--shadow-xl);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

/* Border radius utilities */
.rounded-soft {
  border-radius: var(--radius-sm);
}

.rounded-medium {
  border-radius: var(--radius);
}

.rounded-large {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

/* ===== SPECIAL CLICKABLE EFFECTS ===== */

/* Badge - For those special cards */
/* Card with Special Badge Support */
.card.has-badge {
  margin-top: 0.25rem;
}

.badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--c-primary);
  color: white;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  border: 2px solid white;
}

/* Button - The ultimate button experience */
.button {
  background: var(--c-primary);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.25), 0 4px 14px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 2px solid transparent;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.4s ease;
}

.button:hover {
  background: var(--c-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px 0 rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.3), 0 8px 25px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.button:hover::before {
  left: 100%;
}

.button:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.25), 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

/* Button Pink Variant - For couple packages */
.button-pink {
  background: #ec4899;
  box-shadow: 0 8px 25px 0 rgba(236, 72, 153, 0.25), 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.button-pink:hover {
  background: #db2777;
  box-shadow: 0 15px 35px 0 rgba(236, 72, 153, 0.4), 0 0 25px rgba(236, 72, 153, 0.3), 0 8px 25px 0 rgba(0, 0, 0, 0.15);
}

/* ===== PREMIUM CARD - THE ULTIMATE UNIFORM CARD CLASS ===== */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px 0 rgba(59, 130, 246, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;

  /* PERFECT UNIFORM SPACING */
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* Consistent text alignment */
  text-align: center;
}

/* Only clickable cards get pointer cursor */
.card.clickable {
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.card:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 25px 50px 0 rgba(59, 130, 246, 0.15), 0 0 40px rgba(59, 130, 246, 0.08), 0 15px 30px 0 rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card:active {
  transform: translateY(-4px);
}

/* Card Content Structure */
.card-header {
  margin-bottom: 1rem;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-footer {
  margin-top: auto;
}

/* Duration Circle - Consistent styling */
.card .duration-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-primary);
  border: 3px solid var(--c-primary-light);
  transition: all 0.3s ease;
}

.card:hover .duration-circle {
  background: var(--c-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.3);
}

.card .duration-circle-dual-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-size: 1.33em;
  font-weight: 700;
  color: var(--c-primary);
  border: 3px solid var(--c-primary-light);
  transition: all 0.3s ease;
}

.card:hover .duration-circle-dual-number {
  background: var(--c-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.3);
}

/* ===== GENIUS HEART DURATION CLASSES FOR COUPLES ===== */
/* Heart Duration - Single number for couples massages */
.card .duration-heart {
  width: 90px;
  height: 80px;
  position: relative;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
}

.card .duration-heart::before {
  content: '';
  position: absolute;
  width: 52px;
  height: 80px;
  background: #ec4899;
  border-radius: 26px 26px 0 0;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  left: 50%;
}

.card .duration-heart::after {
  content: '';
  position: absolute;
  width: 52px;
  height: 80px;
  background: #ec4899;
  border-radius: 26px 26px 0 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  right: 50%;
}

.card .duration-heart span {
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  top: -8px; /* Move the number up to center it in the heart shape */
}

.card:hover .duration-heart::before,
.card:hover .duration-heart::after {
  background: #db2777;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.card:hover .duration-heart::before {
  transform: scale(1.1) rotate(-45deg);
}

.card:hover .duration-heart::after {
  transform: scale(1.1) rotate(45deg);
}

.card:hover .duration-heart {
  transform: scale(1.05);
}

/* Heart Duration - Dual number for deluxe couples packages */
.card .duration-heart-dual {
  width: 100px;
  height: 85px;
  position: relative;
  margin: 0 auto 1.33rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
}

.card .duration-heart-dual::before {
  content: '';
  position: absolute;
  width: 58px;
  height: 85px;
  background: #ec4899;
  border-radius: 29px 29px 0 0;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  left: 50%;
}

.card .duration-heart-dual::after {
  content: '';
  position: absolute;
  width: 58px;
  height: 85px;
  background: #ec4899;
  border-radius: 29px 29px 0 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  right: 50%;
}

.card .duration-heart-dual span {
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  line-height: 1.2;
  top: -10px; /* Move the dual numbers up to center them in the heart shape */
}

.card:hover .duration-heart-dual::before,
.card:hover .duration-heart-dual::after {
  background: #db2777;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.card:hover .duration-heart-dual::before {
  transform: scale(1.1) rotate(-45deg);
}

.card:hover .duration-heart-dual::after {
  transform: scale(1.1) rotate(45deg);
}

.card:hover .duration-heart-dual {
  transform: scale(1.05);
}

/* Service Title - Consistent typography */
.card .service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: 1rem;
  white-space: pre-line; /* Preserve line breaks from \n characters */
}

/* Service Price - Eye-catching but consistent */
.card .service-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 1rem;
  line-height: 1;
}

/* Service Description - Perfect readability */
.card .service-description {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Highlighted Card Variant */
.card.highlighted {
  border: 2px solid var(--c-primary);
  box-shadow: 0 8px 30px 0 rgba(59, 130, 246, 0.15), 0 0 50px rgba(59, 130, 246, 0.1);
  transform: scale(1.02);
}

.card.highlighted:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px 0 rgba(59, 130, 246, 0.2), 0 0 60px rgba(59, 130, 246, 0.15), 0 20px 40px 0 rgba(0, 0, 0, 0.1);
}

/* Auto-enhance all service cards */
.card.card-light {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Only clickable card-light cards get pointer */
.card.card-light.clickable {
  cursor: pointer;
}

.card.card-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card.card-light:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px 0 rgba(59, 130, 246, 0.15), 0 0 30px rgba(59, 130, 246, 0.1), 0 10px 20px 0 rgba(0, 0, 0, 0.1);
}

.card.card-light:hover::before {
  opacity: 1;
}

/* Clickable Card - For service cards that need to POP */
.card-clickable {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-clickable::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-clickable:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px 0 rgba(59, 130, 246, 0.15), 0 0 30px rgba(59, 130, 246, 0.1), 0 10px 20px 0 rgba(0, 0, 0, 0.1);
}

.card-clickable:hover::before {
  opacity: 1;
}

.card-clickable:active {
  transform: translateY(-2px);
}

/* Button Glow Effect - For any clickable element */
.glow-on-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2), 0 0 60px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

/* ===== NOTIFICATION SYSTEM STYLES ===== */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: flex-start;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 100%;
  word-wrap: break-word;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.removing {
  transform: translateX(100%);
  opacity: 0;
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  margin-right: 12px;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.notification-close:hover {
  background-color: var(--c-bg-muted);
  color: var(--c-text);
}

/* Notification type styles */
.notification.success {
  border-left: 4px solid var(--c-success);
}

.notification.success .notification-icon {
  background-color: var(--c-success);
  color: white;
}

.notification.error {
  border-left: 4px solid var(--c-error);
}

.notification.error .notification-icon {
  background-color: var(--c-error);
  color: white;
}

.notification.warning {
  border-left: 4px solid #f57c00;
}

.notification.warning .notification-icon {
  background-color: #f57c00;
  color: white;
}

.notification.info {
  border-left: 4px solid var(--c-primary);
}

.notification.info .notification-icon {
  background-color: var(--c-primary);
  color: white;
}

/* Dark theme adjustments */
[data-theme='dark'] .notification {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    margin-bottom: 8px;
  }
}

/* FullCalendar Styles */
.calendar-controls {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calendar-controls label {
  font-weight: 600;
  color: var(--c-text);
}

.calendar-controls select {
  padding: 0.5rem;
  border: 1px solid var(--c-border);
  border-radius: 0.375rem;
  background-color: var(--c-card);
  color: var(--c-text);
  font-size: 0.875rem;
}

.calendar-controls select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(60, 113, 162, 0.1);
}

#calendar {
  background-color: var(--c-card);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  min-height: 600px;
}

/* Override FullCalendar theme colors */
.fc-theme-standard .fc-scrollgrid {
  border-color: var(--c-border-light);
}

.fc-theme-standard th,
.fc-theme-standard td {
  border-color: var(--c-border-light);
}

.fc-col-header-cell {
  background-color: var(--c-bg-muted);
  font-weight: 600;
  color: var(--c-text);
}

.fc-daygrid-day-number {
  color: var(--c-text);
  font-weight: 500;
}

.fc-day-today .fc-daygrid-day-number {
  background-color: var(--c-primary);
  color: white;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style the calendar events */
.fc-event {
  border: none !important;
  background-color: var(--c-primary) !important;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fc-event:hover {
  background-color: var(--c-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.fc-event-title {
  color: white !important;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Style the calendar header buttons */
.fc-button {
  background-color: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
  color: white !important;
  border-radius: 0.375rem !important;
  padding: 0.375rem 0.75rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.fc-button:hover {
  background-color: var(--c-primary-dark) !important;
  border-color: var(--c-primary-dark) !important;
  transform: translateY(-1px);
}

/* ===== THEME-AWARE UTILITY CLASSES ===== */
/* These classes provide consistent theming for common UI patterns */

/* Form Input Utilities */
.theme-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--c-input-border);
  border-radius: 0.375rem;
  background-color: var(--c-input-bg);
  color: var(--c-input-text);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.theme-input:focus {
  outline: none;
  border-color: var(--c-input-border-focus);
  background-color: var(--c-input-bg-focus);
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), 0.1);
}

.theme-input::placeholder {
  color: var(--c-input-placeholder);
}

.theme-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--c-input-border);
  border-radius: 0.375rem;
  background-color: var(--c-input-bg);
  color: var(--c-input-text);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.theme-textarea {
  resize: vertical;
  min-height: 4rem;
}

/* Table Utilities */
.theme-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.theme-table thead {
  background-color: var(--c-table-header-bg);
}

.theme-table thead th {
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-table-header-text);
  border-right: 1px solid var(--c-table-border);
  border-bottom: 1px solid var(--c-table-border);
}

.theme-table thead th:last-child {
  border-right: none;
}

.theme-table tbody {
  background-color: var(--c-table-row-bg);
}

.theme-table tbody tr {
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.theme-table tbody tr:hover {
  background-color: var(--c-table-row-hover);
}

.theme-table tbody td {
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--c-table-border);
  border-bottom: 1px solid var(--c-table-border);
  color: var(--c-text);
  font-size: 0.875rem;
}

.theme-table tbody td:last-child {
  border-right: none;
}

/* Status Badge Utilities */
.theme-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
}

.theme-badge-pending {
  background-color: var(--c-status-pending-bg);
  color: var(--c-status-pending-text);
}

.theme-badge-confirmed {
  background-color: var(--c-status-confirmed-bg);
  color: var(--c-status-confirmed-text);
}

.theme-badge-completed {
  background-color: var(--c-status-completed-bg);
  color: var(--c-status-completed-text);
}

.theme-badge-cancelled {
  background-color: var(--c-status-cancelled-bg);
  color: var(--c-status-cancelled-text);
}

/* Action Button Utilities */
.theme-btn-edit {
  padding: 0.5rem 1rem !important;
  background-color: var(--c-btn-edit-bg) !important;
  background-image: none !important;
  color: white !important;
  border: none !important;
  border-radius: 0.375rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  text-align: center !important;
}

.theme-btn-edit:hover {
  background-color: var(--c-btn-edit-hover) !important;
  background-image: none !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-btn-delete {
  padding: 0.5rem 1rem !important;
  background-color: var(--c-btn-delete-bg) !important;
  background-image: none !important;
  color: white !important;
  border: none !important;
  border-radius: 0.375rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  text-align: center !important;
}

.theme-btn-delete:hover {
  background-color: var(--c-btn-delete-hover) !important;
  background-image: none !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Quick Action Button Utilities */
.theme-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: var(--c-quick-action-bg);
  border: 1px solid var(--c-quick-action-border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--c-text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.theme-quick-action:hover {
  background-color: var(--c-quick-action-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* List Item Utilities */
.theme-list-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--c-list-item-bg);
  border: 1px solid var(--c-list-item-border);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.theme-list-item.stack {
  display: block;
}

.theme-list-item:hover {
  background-color: var(--c-list-item-hover);
}

/* Map/Chart Placeholder Utilities */
.theme-map-placeholder {
  background: var(--c-map-placeholder-bg);
  border-radius: 0.5rem;
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-map-placeholder-text);
}

/* Filter Section Utilities */
.theme-filter-section {
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.theme-filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 0.25rem;
}

/* Service Length/Duration Item (for Services Management) */
.theme-service-duration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--c-list-item-bg);
  border: 1px solid var(--c-list-item-border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.theme-service-duration:hover {
  background-color: var(--c-list-item-hover);
  transform: translateX(2px);
}

/* Holiday Card Utilities (for Business page) */
.theme-holiday-card {
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.theme-holiday-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 1rem;
  text-align: center;
}

.theme-holiday-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.theme-holiday-item {
  padding: 0.5rem;
  color: var(--c-text);
  font-size: 0.875rem;
}

/* Business Information field labels - make them prominent */
.card-body label.text-sm {
  font-size: 0.9375rem !important; /* 15px, larger than text-sm (14px) */
  font-weight: 700 !important; /* Bold for prominence */
  letter-spacing: 0.01em;
}

/* Business Information field values - ensure they're normal weight */
.card-body label.text-sm + p,
.card-body label.text-sm + div p {
  font-weight: 400 !important; /* Normal weight */
  font-size: 1rem; /* 16px */
}

/* Chart/Analytics Card (for Reports page) */
.theme-chart-card {
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Showing X of Y results text */
.theme-results-text {
  font-size: 0.875rem;
  color: var(--c-text);
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
/* Ensure focus states are visible in both themes */

*:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .theme-table {
    font-size: 0.75rem;
  }

  .theme-table thead th,
  .theme-table tbody td {
    padding: 0.5rem 0.75rem;
  }

  .theme-quick-action {
    padding: 0.75rem;
  }
}

.fc-button:focus {
  box-shadow: 0 0 0 3px rgba(60, 113, 162, 0.3) !important;
}

.fc-button-active {
  background-color: var(--c-primary-dark) !important;
  border-color: var(--c-primary-dark) !important;
}

/* Style the calendar title */
.fc-toolbar-title {
  color: var(--c-text) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

/* Improve day grid styling */
.fc-daygrid-day {
  background-color: var(--c-card);
}

.fc-daygrid-day:hover {
  background-color: var(--c-bg-muted);
  cursor: pointer;
}

.fc-day-today {
  background-color: rgba(60, 113, 162, 0.05) !important;
}

/* Style for different event types/staff members */
.fc-event[data-staff='11'] {
  /* Sarah Johnson */
  background-color: #3b82f6 !important;
}

.fc-event[data-staff='12'] {
  /* Michael Chen */
  background-color: #10b981 !important;
}

.fc-event[data-staff='13'] {
  /* Emma Rodriguez */
  background-color: #8b5cf6 !important;
}

.fc-event[data-staff='14'] {
  /* Lisa Park */
  background-color: #f59e0b !important;
}

/* Staff Legend */
.staff-legend {
  padding: 0.75rem;
  background-color: var(--c-bg-muted);
  border-radius: 0.375rem;
  border: 1px solid var(--c-border-light);
}

.staff-legend .bg-blue-500 {
  background-color: #3b82f6;
}

.staff-legend .bg-green-500 {
  background-color: #10b981;
}

.staff-legend .bg-purple-500 {
  background-color: #8b5cf6;
}

.staff-legend .bg-yellow-500 {
  background-color: #f59e0b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }

  .fc-button {
    font-size: 0.875rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  .fc-toolbar-title {
    font-size: 1rem !important;
  }
}

/* Current time slot highlight */
.fc-event.current-time-slot {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.4) 50%, rgba(59, 130, 246, 0.25) 100%) !important;
  border: 2px solid rgba(59, 130, 246, 0.6) !important;
  border-radius: 4px;
  animation: current-slot-pulse 2s ease-in-out infinite;
  overflow: visible !important;
}

/* Add 'Now' label to current time slot */
.fc-event.current-time-slot::after {
  content: 'Now';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

@keyframes current-slot-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Past/unbookable time slots (grey) */
.fc-event.past-slot {
  background-color: #e5e7eb !important; /* Light grey */
  opacity: 0.6;
  cursor: not-allowed;
}
