/* ===================================================================
   MYDHARMSHALA DESIGN SYSTEM
   Spiritual, Premium, Modern Multi-Tenant Hospitality Design Tokens
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Spiritual Warm Palette */
  --saffron-50: #fffaf0;
  --saffron-100: #feebc8;
  --saffron-200: #fbd38d;
  --saffron-300: #f6ad55;
  --saffron-400: #ed8936;
  --saffron-500: #dd6b20; /* Primary Spiritual Saffron */
  --saffron-600: #c05621;
  --saffron-700: #9c4221;
  --saffron-800: #7b341e;
  --saffron-900: #652b19;

  /* Gold & Brass Temple Accents */
  --gold-300: #fef08a;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --gold-700: #a16207;

  /* Holy River & Tranquil Slate */
  --river-50: #f0fdfa;
  --river-500: #14b8a6;
  --river-700: #0f766e;

  /* Neutral Stone & Ash Shades */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;

  /* Functional */
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --amber-500: #f59e0b;

  /* Semantic UI Tokens */
  --bg-primary: #fbf9f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f4eee3;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #8c827a;
  --border-subtle: #ebdccc;
  --border-strong: #d6c3b0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(101, 43, 25, 0.08), 0 2px 4px -2px rgba(101, 43, 25, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(101, 43, 25, 0.1), 0 4px 6px -4px rgba(101, 43, 25, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(101, 43, 25, 0.12), 0 8px 10px -6px rgba(101, 43, 25, 0.05);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Cinzel', serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Global Navigation Switcher Bar */
.persona-switcher-bar {
  background: linear-gradient(90deg, #1c1917 0%, #292524 100%);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  border-bottom: 2px solid var(--saffron-500);
}

.persona-switcher-bar .brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.persona-switcher-bar .brand-badge .om-symbol {
  color: var(--gold-400);
  font-size: 18px;
}

.persona-switcher-bar .nav-modes {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: var(--radius-md);
}

.persona-switcher-bar .mode-btn {
  background: transparent;
  border: none;
  color: #d6d3d1;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.persona-switcher-bar .mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.persona-switcher-bar .mode-btn.active {
  background: var(--saffron-500);
  color: #fff;
  box-shadow: 0 2px 6px rgba(221, 107, 32, 0.4);
}

.live-sync-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #a8a29e;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-sync-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  box-shadow: 0 0 8px var(--emerald-500);
  animation: pulseAnimation 1.8s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Common UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron-500) 0%, var(--saffron-600) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(221, 107, 32, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--saffron-600) 0%, var(--saffron-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(221, 107, 32, 0.35);
}

.btn-secondary {
  background: var(--stone-100);
  color: var(--stone-800);
  border: 1px solid var(--stone-200);
}

.btn-secondary:hover {
  background: var(--stone-200);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--stone-900);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-saffron {
  background: var(--saffron-100);
  color: var(--saffron-800);
}

.badge-green {
  background: #dcfce7;
  color: #166534;
}

.badge-gold {
  background: var(--gold-300);
  color: var(--gold-700);
}

.badge-slate {
  background: var(--stone-200);
  color: var(--stone-800);
}

/* Glassmorphic Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}
