/* =============================================
   TATTVAYAN – AI Vidya Platform
   Global Design System v2.0
   Theme: Gujarati Cultural × Bandhani × Navratri
============================================= */

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

/* ===== CSS VARIABLES ===== */
:root {
  /* Navratri Inspired Colors */
  --saffron: #FF9933;
  --saffron-light: #FFB85C;
  --saffron-dark: #E67E00;
  --deep-red: #8B0000;
  --deep-red-light: #B22222;
  --deep-red-dark: #5C0000;
  --gold: #D4A017;
  --gold-light: #F0C040;
  --gold-dark: #B8860B;
  --maroon: #800020;
  --emerald: #2E8B57;
  --royal-blue: #1E3A6E;
  --cream: #FFF8E7;
  --turmeric: #E3A857;
  
  /* Background Colors */
  --bg-primary: #FFFBF5;
  --bg-secondary: #FFF7EB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFAF2;
  --bg-cream: #FDF6EC;
  --bg-cream-dark: #F5EADB;
  --bg-sidebar: #FFFCF7;
  --bg-dark-section: linear-gradient(135deg, #1a0a00 0%, #3d0000 50%, #1a0a00 100%);
  
  /* Text Colors */
  --text-primary: #2C1810;
  --text-secondary: #5C4033;
  --text-muted: #9A7B6A;
  --text-dark: #1a0a00;
  --text-gold: #8B5E00;
  --text-on-dark: #FFEBD6;
  
  /* Gradients */
  --grad-saffron: linear-gradient(135deg, #FF9933, #FFD700);
  --grad-red: linear-gradient(135deg, #8B0000, #C0392B);
  --grad-dark: linear-gradient(135deg, #1a0a00, #3d0000);
  --grad-card: linear-gradient(135deg, #FFFFFF, #FDF9F4);
  --grad-hero: linear-gradient(160deg, #FFF8E7 0%, #FFECD2 30%, #FFE4C4 60%, #FFF8E7 100%);
  --grad-navratri: linear-gradient(135deg, #FF9933, #FF6347, #FFD700);
  --grad-bandhani: radial-gradient(circle, rgba(255,153,51,0.12) 1px, transparent 1px);
  --grad-toran: linear-gradient(to right, transparent, #FF9933, #FFD700, #FF9933, transparent);
  
  /* Effects */
  --shadow-gold: 0 4px 24px rgba(139, 0, 0, 0.12);
  --shadow-saffron: 0 4px 24px rgba(255, 153, 51, 0.2);
  --shadow-card: 0 2px 20px rgba(139, 0, 0, 0.06);
  --shadow-deep: 0 8px 40px rgba(139, 0, 0, 0.15);
  --shadow-glass: 0 8px 32px rgba(139, 0, 0, 0.08);
  
  /* Borders */
  --border-gold: 1px solid rgba(212, 160, 23, 0.25);
  --border-saffron: 1px solid rgba(255, 153, 51, 0.35);
  --border-card: 1px solid rgba(139, 0, 0, 0.08);
  --border-toran: 3px solid transparent;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-mid: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Fonts */
  --font-display: 'Cinzel Decorative', serif;
  --font-gujarati: 'Noto Serif Gujarati', serif;
  --font-body: 'Outfit', 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Z-indices */
  --z-nav: 100;
  --z-modal: 200;
  --z-tooltip: 300;
  --z-toast: 400;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(var(--deep-red), var(--saffron));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--deep-red); }

/* ===== SELECTION ===== */
::selection {
  background: rgba(255, 153, 51, 0.2);
  color: var(--deep-red);
}

/* ===== BANDHANI PATTERN BACKGROUND ===== */
.bandhani-bg {
  position: relative;
}
.bandhani-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255,153,51,0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(139,0,0,0.05) 1px, transparent 1px);
  background-size: 20px 20px, 30px 30px;
  background-position: 0 0, 15px 15px;
  pointer-events: none;
  z-index: 0;
}

/* ===== TORAN DECORATION ===== */
.toran-border {
  position: relative;
}
.toran-border::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 12px;
  background: 
    url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 Q10,12 20,0 Q30,12 40,0' fill='none' stroke='%23FF9933' stroke-width='2'/%3E%3Ccircle cx='10' cy='8' r='2' fill='%23FFD700'/%3E%3Ccircle cx='30' cy='8' r='2' fill='%23FFD700'/%3E%3C/svg%3E") repeat-x;
  z-index: 1;
}

/* ===== UTILITY CLASSES ===== */
.gold-text { 
  background: var(--grad-saffron);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.saffron-text { color: var(--saffron); }
.gold-text-solid { color: var(--gold); }
.red-text { color: var(--deep-red); }

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 14px 0;
  transition: all var(--transition-mid);
  background: rgba(255, 252, 247, 0.92);
  border-bottom: 1px solid rgba(139,0,0,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar.scrolled {
  background: rgba(255, 252, 247, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(139,0,0,0.12);
  padding: 8px 0;
  box-shadow: 0 4px 30px rgba(139,0,0,0.08);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-svg { width: 48px; height: 48px; }

.logo-icon {
  width: 52px; height: 52px;
  background: radial-gradient(circle, rgba(255,153,51,0.12), transparent);
  border: 2px solid rgba(212,160,23,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all var(--transition-mid);
}
.logo-icon:hover {
  border-color: var(--saffron);
  box-shadow: 0 0 20px rgba(255,153,51,0.2);
}

.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad-saffron);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2.5px;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-saffron);
  transition: all var(--transition-mid);
  transform: translateX(-50%);
  border-radius: 1px;
}
.nav-link:hover { 
  color: var(--deep-red); 
}
.nav-link:hover::after {
  width: 60%;
}

.nav-btn {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn-outline {
  border: 1.5px solid rgba(139,0,0,0.2);
  color: var(--deep-red);
  background: transparent;
}
.nav-btn-outline:hover {
  background: rgba(139,0,0,0.04);
  border-color: var(--deep-red);
  transform: translateY(-1px);
}

.nav-btn-primary {
  background: var(--grad-saffron);
  color: #fff;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 18px rgba(255,153,51,0.35);
}
.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,153,51,0.5);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2.5px;
  background: var(--deep-red);
  border-radius: 2px;
  transition: all var(--transition-fast);
  display: block;
}

/* ===== SECTION LAYOUT ===== */
.section-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 22px;
  border-radius: var(--radius-full);
  background: rgba(255,153,51,0.1);
  border: 1px solid rgba(255,153,51,0.25);
  color: var(--saffron-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--deep-red);
  margin-bottom: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: var(--grad-saffron);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-mid);
  box-shadow: 0 4px 20px rgba(255,153,51,0.35);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary-hero::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}
.btn-primary-hero:hover::before {
  left: 100%;
}
.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,153,51,0.5);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: transparent;
  color: var(--deep-red);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-mid);
  border: 2px solid rgba(139,0,0,0.2);
}
.btn-secondary-hero:hover {
  background: rgba(139,0,0,0.04);
  border-color: var(--deep-red);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: transparent;
  color: var(--deep-red);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-mid);
  border: 1.5px solid rgba(139,0,0,0.15);
}
.btn-ghost:hover {
  border-color: var(--deep-red);
  background: rgba(139,0,0,0.04);
}

/* ===== CARD BASE ===== */
.card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-mid);
  box-shadow: var(--shadow-card);
}
.card:hover {
  border-color: rgba(255,153,51,0.3);
  box-shadow: var(--shadow-saffron);
  transform: translateY(-4px);
}

/* ===== RANGOLI DIVIDER ===== */
.rangoli-divider {
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 20px;
}
.rangoli-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,153,51,0.5), transparent);
}
.rangoli-center { flex-shrink: 0; }

/* ===== TORAN SECTION DIVIDER ===== */
.toran-divider {
  width: 100%;
  height: 24px;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='24' viewBox='0 0 60 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 Q15,20 30,0 Q45,20 60,0' fill='none' stroke='%23FF9933' stroke-width='2' stroke-opacity='0.4'/%3E%3Ccircle cx='15' cy='14' r='3' fill='%23FFD700' fill-opacity='0.5'/%3E%3Ccircle cx='45' cy='14' r='3' fill='%23FFD700' fill-opacity='0.5'/%3E%3C/svg%3E") repeat-x center;
  margin: 0 auto;
}

/* ===== PARTICLES ===== */
#particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ===== SIDEBAR LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
}

.sidebar {
  width: 270px;
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(139,0,0,0.08);
  position: fixed;
  top: 0; left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-mid);
  overflow-y: auto;
  box-shadow: 2px 0 24px rgba(139,0,0,0.04);
}

.sidebar-logo {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(139,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255,153,51,0.04), rgba(255,215,0,0.02));
  position: relative;
}
.sidebar-logo::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-saffron);
  opacity: 0.3;
}

.sidebar-logo-icon { font-size: 2rem; }
.sidebar-logo-text { display: flex; flex-direction: column; }
.sidebar-logo-main {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--deep-red);
  letter-spacing: 1.5px;
  font-weight: 700;
}
.sidebar-logo-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; }

.sidebar-nav { flex: 1; padding: 16px 0; }

.sidebar-section-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 16px 22px 6px;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar-link:hover {
  color: var(--deep-red);
  background: rgba(255,153,51,0.05);
  border-left-color: var(--saffron);
}
.sidebar-link.active {
  color: var(--deep-red);
  background: rgba(255,153,51,0.08);
  border-left-color: var(--deep-red);
  font-weight: 600;
}
.sidebar-link.active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--grad-saffron);
  border-radius: 3px 0 0 3px;
}
.sidebar-link-icon { font-size: 1.15rem; width: 24px; text-align: center; }

.sidebar-user {
  padding: 18px 22px;
  border-top: 1px solid rgba(139,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255,153,51,0.04), rgba(255,215,0,0.02));
}
.sidebar-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-saffron);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255,153,51,0.3);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.7rem; color: var(--text-muted); }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 270px;
  flex: 1;
  min-height: 100vh;
  background: var(--bg-primary);
}

.page-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,0,0,0.06);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.page-title-area { display: flex; flex-direction: column; }
.page-title { font-size: 1.3rem; font-weight: 700; color: var(--deep-red); font-family: var(--font-heading); }
.page-subtitle { font-size: 0.8rem; color: var(--text-secondary); }

.page-header-actions { display: flex; align-items: center; gap: 10px; }

.header-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(139,0,0,0.15);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
}
.header-btn:hover { 
  background: rgba(139,0,0,0.04); 
  border-color: var(--deep-red);
  color: var(--deep-red);
}
.header-btn.primary {
  background: var(--grad-saffron);
  color: #fff;
  border-color: transparent;
}
.header-btn.primary:hover { 
  box-shadow: 0 4px 18px rgba(255,153,51,0.4); 
  transform: translateY(-1px); 
}

.page-body { padding: 28px 32px; }

/* ===== STATS CARD GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(139,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(139,0,0,0.04);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-saffron);
  opacity: 0.7;
}
.stat-card:hover {
  border-color: rgba(255,153,51,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(139,0,0,0.1);
}
.stat-card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.stat-card-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--deep-red);
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}
.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.stat-card-change {
  font-size: 0.73rem;
  color: #2E7D32;
  margin-top: 6px;
  font-weight: 600;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 6px;
  background: rgba(139,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}
.progress-fill {
  height: 100%;
  background: var(--grad-saffron);
  border-radius: 3px;
  transition: width 1s ease;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255,153,51,0.1);
  border: 1px solid rgba(255,153,51,0.3);
  color: var(--saffron-dark);
}

/* ===== FORM STYLES ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-input {
  padding: 12px 16px;
  background: #FAFAFA;
  border: 1.5px solid rgba(139,0,0,0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--saffron);
  background: #FFFAF5;
  box-shadow: 0 0 0 4px rgba(255,153,51,0.1);
}
.form-input::placeholder { color: #BBA898; }

select.form-input option { background: #ffffff; color: var(--text-primary); }

/* ===== TEMPLE BORDER DECORATION ===== */
.temple-border {
  position: relative;
}
.temple-border::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--saffron), var(--gold), var(--saffron), transparent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,153,51,0.3); }
  50% { box-shadow: 0 0 40px rgba(255,153,51,0.6); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-body { padding: 16px; }
  .page-header { padding: 14px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loader-diya { font-size: 3rem; animation: pulse 1.5s ease infinite; }
.loader-text {
  margin-top: 16px;
  font-family: var(--font-display);
  color: var(--deep-red);
  font-size: 0.9rem;
  letter-spacing: 3px;
}

/* ===== TOOLTIP ===== */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-red);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: inline-flex;
  background: rgba(255,153,51,0.08);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid rgba(255,153,51,0.2);
}
.lang-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}
.lang-btn.active {
  background: var(--grad-saffron);
  color: #fff;
}

/* ===== GUJARATI WORD CLUSTERS ===== */
.gujarati-word-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.guj-word {
  font-family: var(--font-gujarati);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--saffron-dark);
  background: rgba(255,153,51,0.08);
  border: 1px solid rgba(255,153,51,0.18);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  cursor: default;
}
.guj-word:hover {
  background: rgba(255,153,51,0.18);
  border-color: rgba(255,153,51,0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,153,51,0.15);
}
.guj-dot {
  color: var(--saffron);
  font-size: 0.5rem;
  opacity: 0.5;
}

/* ===== CHART CONTAINER (shared) ===== */
.chart-container {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chart-pill {
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,153,51,0.1);
  color: var(--saffron-dark);
  font-weight: 600;
}

/* ===== MICRO-INTERACTION: HOVER GLOW ===== */
.hover-glow {
  transition: all var(--transition-mid);
}
.hover-glow:hover {
  box-shadow: 0 0 0 4px rgba(255,153,51,0.1), var(--shadow-saffron);
}

/* ===== SUBSCRIPTION PLAN CARDS ===== */
.plan-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(139,0,0,0.08);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-saffron);
  opacity: 0.5;
}
.plan-card.featured {
  border-color: var(--saffron);
  box-shadow: 0 12px 40px rgba(255,153,51,0.15);
  transform: scale(1.03);
}
.plan-card.featured::before {
  opacity: 1;
  height: 5px;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(139,0,0,0.12);
}
.plan-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}
