:root {
  --primary: #1565C0;
  --primary-light: #E3F2FD;
  --primary-medium: #90CAF9;
  --accent: #00796B;
  --accent-light: #E0F2F1;
  --success: #2E7D32;
  --success-light: #E8F5E9;
  --warning: #F57F17;
  --warning-light: #FFF8E1;
  --danger: #C62828;
  --danger-light: #FFEBEE;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #5A6178;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}

.dark {
  --primary: #64B5F6;
  --primary-light: #1A2332;
  --primary-medium: #1E3A5F;
  --accent: #4DB6AC;
  --accent-light: #1A2E2B;
  --success: #66BB6A;
  --success-light: #1B2E1B;
  --warning: #FFB74D;
  --warning-light: #2E2517;
  --danger: #EF5350;
  --danger-light: #2E1717;
  --bg: #0F1419;
  --card-bg: #1A2332;
  --text-primary: #E8ECF1;
  --text-secondary: #8899AA;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
  --gray-50: #1A2332;
  --gray-100: #1E2A3A;
  --gray-200: #253344;
  --gray-300: #2D3D50;
  --gray-400: #4A5D73;
  --gray-500: #6B7D93;
  --gray-600: #8899AA;
  --gray-700: #A0B0C0;
  --gray-800: #C0CDD8;
  --gray-900: #E8ECF1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(21, 101, 192, 0); }
}

@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.pulse-btn { animation: pulse 2s infinite; }

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall 3s ease-in forwards;
  z-index: 9999;
  pointer-events: none;
}

.card-hover {
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

.toast-enter {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.toast-exit {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Mobile bottom nav */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex !important; }
  body { padding-bottom: 72px; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
}

input, select, textarea {
  font-family: 'DM Sans', sans-serif;
}

.status-scheduled { background: var(--primary-light); color: var(--primary); }
.status-confirmed { background: #E8F5E9; color: #2E7D32; }
.status-in-progress { background: #FFF8E1; color: #F57F17; }
.status-completed { background: var(--gray-100); color: var(--gray-600); }
.status-cancelled { background: #FFEBEE; color: #C62828; }
.status-no-show { background: #FBE9E7; color: #BF360C; }

.dark .status-scheduled { background: var(--primary-light); color: var(--primary); }
.dark .status-confirmed { background: var(--success-light); color: var(--success); }
.dark .status-in-progress { background: var(--warning-light); color: var(--warning); }
.dark .status-completed { background: var(--gray-100); color: var(--gray-500); }
.dark .status-cancelled { background: var(--danger-light); color: var(--danger); }
.dark .status-no-show { background: #2E1A0A; color: #FF8A65; }