/* ONICOS - Modern Period & Menstrual Tracker UI */
/* Updated: Modern Layout & Spacing */

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

:root {
  /* Colors - SAME as original */
  --primary-pink: #FBADDD;
  --secondary-pink: #F990D1;
  --tertiary-pink: #FBADDD;
  --dark-pink: #D5007A;
  --light-pink: #FFE6F2;
  --primary-lighter: #FFD6F0;
  --text-color: #333;
  --bg-color: #FFF;
  --card-bg: #FFF;
  --shadow: rgba(255, 112, 200, 0.2);
  
  /* Enhanced Calendar Colors - More Vibrant */
  /* Bleeding Days - Bright Pink/Red */
  --menstrual-color: #E91E63;
  --menstrual-light: #FCE4EC;
  --menstrual-soft: #FCE4EC;
  
  /* Follicular Phase - Soft Pink */
  --follicular-color: #FF80AB;
  --follicular-light: #FF80AB;
  --follicular-soft: #FFF0F5;
  
  /* Ovulation - Hot Pink with Glow */
  --ovulation-color: #FF1493;
  --ovulation-light: #FFB6C1;
  --ovulation-soft: #FFE4E9;
  --ovulation-glow: rgba(255, 20, 147, 0.5);
  
  /* Luteal Phase - Muted Rose */
  --luteal-color: #CE93D8;
  --luteal-light: #E1BEE7;
  --luteal-soft: #F3E5F5;
  
  /* Predicted Days - Gray */
  --predicted-color: #78909C;
  --predicted-light: #ECEFF1;
  --predicted-border: #B0BEC5;
  
  /* Legacy colors for compatibility */
  --menstrual-color-legacy: #FF6B9D;
  --menstrual-light-legacy: #FFCCE8;
  --follicular-color-legacy: #7ED957;
  --follicular-light-legacy: #E8F5D6;
  --ovulation-color-legacy: #FFD93D;
  --ovulation-light-legacy: #FFF3CC;
  --luteal-color-legacy: #FF9F43;
  --luteal-light-legacy: #FFE5CC;
}

.dark-mode {
  --text-color: #FFF;
  --bg-color: #1A1A1A;
  --card-bg: #2A2A2A;
  --shadow: rgba(0, 0, 0, 0.3);
  --light-pink: #3D1A2A;
  
  /* Dark mode - Brighter calendar colors for visibility */
  --menstrual-color: #FF4081;
  --menstrual-light: #3D1A2A;
  --menstrual-soft: #4A2040;
  
  --follicular-color: #FF80AB;
  --follicular-light: #4A2035;
  --follicular-soft: #3D1A2A;
  
  --ovulation-color: #FF1493;
  --ovulation-light: #4A203A;
  --ovulation-soft: #3D1A30;
  --ovulation-glow: rgba(255, 20, 147, 0.5);
  
  --luteal-color: #CE93D8;
  --luteal-light: #3D2A4A;
  --luteal-soft: #30203D;
  
  --predicted-light: #2A2A2A;
  --predicted-border: #4A4A4A;
  
  /* Legacy dark mode colors */
  --menstrual-light-legacy: #4A1A2A;
  --follicular-light-legacy: #1A3D1A;
  --ovulation-light-legacy: #3D3A1A;
  --luteal-light-legacy: #3D2A1A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* ==================== LANDING PAGE ==================== */
.landing-page {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--dark-pink), var(--primary-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
}

.landing-content {
  text-align: center;
  z-index: 10;
  max-width: 500px;
  width: 100%;
}

.onicos-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.onicos-text {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.letter {
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 700;
  color: #FFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: letter-reveal 0.6s ease-out forwards, gentle-wave 3s ease-in-out infinite 0.8s;
  opacity: 0;
  transform: translateY(40px);
}

@keyframes letter-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentle-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.logo-icon {
  width: clamp(240px, 55vw, 380px);
  height: auto;
  animation: float-bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.2));
}

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.landing-tagline {
  color: #FFF;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  opacity: 0;
  animation: fade-up 0.8s ease-out 0.6s forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: none;
  color: #FFF;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounce-scroll 2s ease-in-out infinite;
  z-index: 100;
  position: relative;
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.dark-mode .header {
  background: var(--bg-color);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dark-pink);
}

.header-logo img {
  width: 52px;
  height: 52px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 24px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--light-pink);
  color: var(--dark-pink);
}

.nav-link.active {
  background: var(--primary-pink);
  color: #FFF;
}

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

.header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-color);
  transition: all 0.2s ease;
  background: var(--light-pink);
}

.header-btn:hover {
  background: var(--primary-pink);
  color: #FFF;
  transform: scale(1.05);
}

#language-selector {
  width: auto;
  min-width: 80px;
  font-size: 0.9rem;
  color: #000;
}

#language-selector option {
  color: #000;
  background: var(--bg-color);
}

.mobile-menu-btn {
  display: none;
}

/* ==================== MAIN CONTAINER ==================== */
.main-container {
  padding-top: 72px;
  min-height: 100vh;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ==================== SECTIONS ==================== */
.section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
}

.section:hover {
  box-shadow: 0 8px 32px var(--shadow);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-pink);
  cursor: pointer;
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark-pink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--primary-pink);
  transition: transform 0.3s ease;
}

.section-header.collapsed h2::after {
  transform: rotate(-90deg);
}

.section-content {
  transition: all 0.3s ease;
}

.section-content.collapsed {
  display: none;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--light-pink);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-color);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary-pink);
  color: #FFF;
  border: none;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reveal-btn:hover {
  background: var(--dark-pink);
  transform: scale(1.02);
}

.card-content {
  display: none;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--light-pink);
  color: var(--text-color);
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-pink);
  color: #FFF;
  box-shadow: 0 4px 16px rgba(255, 112, 200, 0.3);
}

.btn-primary:hover {
  background: var(--dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 112, 200, 0.4);
}

.btn-secondary {
  background: var(--light-pink);
  color: var(--dark-pink);
}

.btn-secondary:hover {
  background: var(--primary-pink);
  color: #FFF;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--secondary-pink);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--dark-pink);
  box-shadow: 0 0 0 4px rgba(213, 0, 122, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 44px;
}

/* ==================== DASHBOARD ==================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  border: 2px solid var(--light-pink);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  border-color: var(--primary-pink);
  transform: translateY(-2px);
}

.dashboard-card.highlight {
  background: linear-gradient(135deg, var(--ovulation-light), var(--card-bg));
  border-color: var(--ovulation-color);
}

.dashboard-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.dashboard-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

.dashboard-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Dashboard Phase Styling */
.dashboard-card.menstruation-phase {
  border-color: var(--menstrual-color);
  background: linear-gradient(135deg, var(--menstrual-light), var(--card-bg));
}

.dashboard-card.follicular-phase {
  border-color: var(--follicular-color);
  background: linear-gradient(135deg, var(--follicular-light), var(--card-bg));
}

.dashboard-card.ovulation-phase {
  border-color: var(--ovulation-color);
  background: linear-gradient(135deg, var(--ovulation-light), var(--card-bg));
  box-shadow: 0 0 20px var(--ovulation-glow);
}

.dashboard-card.luteal-phase {
  border-color: var(--luteal-color);
  background: linear-gradient(135deg, var(--luteal-light), var(--card-bg));
}

/* ==================== PERIOD TRACKER SECTION ==================== */
#period-tracker {
  background: linear-gradient(135deg, var(--light-pink) 0%, #FFF 50%, var(--follicular-soft) 100%);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px var(--shadow);
  position: relative;
  overflow: hidden;
}

#period-tracker::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--ovulation-glow) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

#period-tracker .section-header {
  border-bottom-color: var(--menstrual-light);
}

#period-tracker .section-header h2 {
  color: var(--dark-pink);
}

/* ==================== TRACKER DASHBOARD ==================== */
.tracker-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tracker-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px var(--shadow);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.tracker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

.tracker-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tracker-card-icon {
  font-size: 24px;
}

.tracker-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tracker-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ML Confidence Indicator */
#ml-confidence-card {
  border-color: var(--primary-pink);
}

#prediction-confidence {
  font-size: 18px;
  font-weight: 600;
}

.confidence-indicator {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.confidence-indicator.high {
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  color: white;
}

.confidence-indicator.medium {
  background: linear-gradient(135deg, #FF9800, #FFC107);
  color: white;
}

.confidence-indicator.low {
  background: linear-gradient(135deg, #9E9E9E, #BDBDBD);
  color: white;
}

/* Quick Log Period Button */
.quick-log-section {
  margin: 20px 0;
  text-align: center;
}

.quick-log-btn {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
  transition: all 0.3s ease;
}

.quick-log-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
}

.quick-log-btn:active {
  transform: translateY(0);
}

/* Phase-specific card styling */
.tracker-card.menstruation-phase {
  border-color: var(--menstrual-color);
  background: linear-gradient(135deg, var(--card-bg), rgba(233, 30, 99, 0.1));
}

.tracker-card.follicular-phase {
  border-color: var(--follicular-color);
  background: linear-gradient(135deg, var(--card-bg), rgba(233, 30, 99, 0.05));
}

.tracker-card.ovulation-phase {
  border-color: var(--ovulation-color);
  background: linear-gradient(135deg, var(--card-bg), rgba(255, 193, 7, 0.1));
}

.tracker-card.luteal-phase {
  border-color: var(--luteal-color);
  background: linear-gradient(135deg, var(--card-bg), rgba(103, 58, 183, 0.1));
}

/* Highlight fertility card when in fertility window */
.tracker-card.highlight {
  border-color: var(--ovulation-color);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

/* ==================== CALENDAR ==================== */
.calendar-wrapper {
  display: block;
  max-width: 100%;
}

.calendar {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--menstrual-light);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--light-pink);
  color: var(--dark-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background: var(--primary-pink);
  color: #FFF;
}

.calendar-today-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 10px;
  background: var(--primary-pink);
  color: #FFF;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, var(--menstrual-soft) 0%, var(--follicular-soft) 100%);
  border-radius: 16px;
  border: 1px solid var(--menstrual-light);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 10px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Legend item background colors by phase - direct classes */
.legend-menstruation {
  background: var(--menstrual-color) !important;
  border: 2px solid var(--menstrual-color) !important;
}
.legend-menstruation .legend-text {
  color: #FFF !important;
  font-weight: 600;
}

.legend-follicular {
  background: var(--follicular-color) !important;
  border: 2px solid var(--follicular-color) !important;
}
.legend-follicular .legend-text {
  color: #FFF !important;
  font-weight: 600;
}

.legend-ovulation {
  background: var(--ovulation-color) !important;
  border: 2px solid var(--ovulation-color) !important;
}
.legend-ovulation .legend-text {
  color: #FFF !important;
  font-weight: 600;
}

.legend-luteal {
  background: var(--luteal-color) !important;
  border: 2px solid var(--luteal-color) !important;
}
.legend-luteal .legend-text {
  color: #FFF !important;
  font-weight: 600;
}

/* Legend item background colors by phase - must come AFTER base .legend-item */
/* Note: Using direct classes in HTML now (.legend-menstruation, etc.) */

/* Circular indicator dots */
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid;
}

.legend-dot.menstruation {
  background: var(--menstrual-color);
  border-color: var(--menstrual-color);
  box-shadow: 0 0 6px rgba(233, 30, 99, 0.6);
}

.legend-dot.follicular {
  background: var(--follicular-color);
  border-color: var(--follicular-color);
  box-shadow: 0 0 6px rgba(255, 128, 171, 0.6);
}

.legend-dot.ovulation {
  background: var(--ovulation-color);
  border-color: var(--ovulation-color);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.7);
  animation: dot-pulse 2s ease-in-out infinite;
}

.legend-dot.luteal {
  background: var(--luteal-color);
  border-color: var(--luteal-color);
  box-shadow: 0 0 6px rgba(206, 147, 216, 0.6);
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.legend-color.menstrual { 
  background: var(--menstrual-color); 
  border-color: var(--menstrual-color);
}
.legend-color.follicular { 
  background: var(--follicular-color); 
  border-color: var(--follicular-color);
}
.legend-color.ovulation { 
  background: var(--ovulation-color); 
  border-color: var(--ovulation-color);
  box-shadow: 0 0 8px var(--ovulation-glow);
}
.legend-color.luteal { 
  background: var(--luteal-color); 
  border-color: var(--luteal-color);
}
.legend-color.predicted {
  background: var(--predicted-light); 
  border: 2px dashed var(--predicted-border);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #F5F5F5;
  color: var(--text-color);
}

.calendar-day:hover {
  background: var(--primary-lighter);
  transform: scale(1.05);
}

.calendar-day.today {
  border: 2px solid var(--dark-pink);
  font-weight: 600;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day.empty:hover {
  transform: none;
}

.calendar-day.menstruation,
.calendar-day.predicted-menstruation {
  background: var(--menstrual-color) !important;
  color: #FFF !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.5);
  border: 2px solid #C2185B;
}

.calendar-day.predicted-menstruation {
  background: var(--menstrual-light) !important;
  color: var(--menstrual-color) !important;
  border: 3px dashed var(--menstrual-color);
}

.calendar-day.follicular,
.calendar-day.predicted-follicular {
  background: var(--follicular-color) !important;
  color: #FFF !important;
  font-weight: 600;
}

.calendar-day.predicted-follicular {
  background: var(--follicular-light) !important;
  color: var(--follicular-color) !important;
  border: 3px dashed var(--follicular-color);
}

.calendar-day.ovulation,
.calendar-day.day-ovulation {
  background: var(--ovulation-color) !important;
  color: #FFF !important;
  font-weight: 700;
  box-shadow: 0 0 15px var(--ovulation-glow), 0 2px 8px rgba(255, 20, 147, 0.4);
  border: 2px solid #C51162;
  animation: ovulation-pulse 2s ease-in-out infinite;
}

@keyframes ovulation-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--ovulation-glow), 0 2px 8px rgba(255, 107, 157, 0.4); }
  50% { box-shadow: 0 0 20px var(--ovulation-glow), 0 4px 12px rgba(255, 107, 157, 0.6); }
}

.calendar-day.luteal,
.calendar-day.day-luteal {
  background: var(--luteal-color) !important;
  color: #FFF !important;
font-weight: 600;
}

/* Predicted days - lighter colors with dashed borders */
.calendar-day.predicted-menstrual {
  background: var(--menstrual-light) !important;
  color: var(--menstrual-color) !important;
  border: 3px dashed var(--menstrual-color);
  font-weight: 600;
}

.calendar-day.predicted-follicular {
  background: var(--follicular-light) !important;
  color: var(--follicular-color) !important;
  border: 3px dashed var(--follicular-color);
  font-weight: 600;
}

.calendar-day.predicted-ovulation {
  background: var(--ovulation-light) !important;
  color: var(--ovulation-color) !important;
  border: 3px dashed var(--ovulation-color);
  font-weight: 700;
box-shadow: 0 0 8px var(--ovulation-glow);
}

.calendar-day.predicted-luteal {
  background: var(--luteal-light) !important;
  color: var(--luteal-color) !important;
  border: 3px dashed var(--luteal-color);
  font-weight: 600;
}

.calendar-day.predicted,
.calendar-day.day-predicted {
  background: var(--predicted-light) !important;
  color: var(--predicted-color) !important;
  border: 3px dashed var(--predicted-border);
  font-weight: 600;
}

/* Phase labels on calendar days */
.calendar-day::after {
  content: attr(data-phase);
  position: absolute;
  bottom: 2px;
  font-size: 0.6rem;
  opacity: 0.8;
  font-weight: 400;
}

.calendar-day.selected {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-color: var(--dark-pink);
}

/* ==================== SETTINGS ==================== */
.settings-section {
  background: linear-gradient(135deg, var(--menstrual-soft) 0%, var(--follicular-soft) 100%);
  border-radius: 20px;
  padding: 28px;
  margin-top: 28px;
  border: 1px solid var(--menstrual-light);
}

.settings-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 20px;
  text-align: center;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.settings-btn {
  padding: 14px 24px;
  background: var(--primary-pink);
  color: #FFF;
  border: none;
  border-radius: 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-btn:hover {
  background: var(--dark-pink);
  transform: translateY(-2px);
}

/* ==================== INSIGHTS ==================== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.insight-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
}

.insight-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-pink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-box {
  background: var(--light-pink);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-pink);
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--light-pink);
  border-radius: 10px;
  margin-bottom: 8px;
}

.list-date {
  font-weight: 500;
  color: var(--text-color);
}

.list-phase {
  font-size: 0.85rem;
  color: #666;
}

/* ==================== SYMPTOMS ==================== */
.symptoms-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.symptoms-form {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
}

.symptoms-form-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 20px;
}

.date-input-wrapper {
  margin-bottom: 20px;
}

.date-input-wrapper .form-input {
  background: var(--light-pink);
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
}

.mood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.mood-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--light-pink);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 3px solid transparent;
}

.mood-btn:hover {
  transform: scale(1.1);
  background: var(--primary-lighter);
}

.mood-btn.selected {
  border-color: var(--dark-pink);
  box-shadow: 0 0 20px rgba(213, 0, 122, 0.2);
}

.selected-mood-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.symptom-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--light-pink);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.symptom-check:hover {
  background: var(--secondary-pink);
}

.symptom-check input {
  display: none;
}

.symptom-check .check-icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--secondary-pink);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.symptom-check input:checked + .check-icon {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
}

.symptom-check input:checked + .check-icon::after {
  content: '✓';
  color: #FFF;
  font-size: 0.75rem;
}

.flow-options {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.flow-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--light-pink);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.flow-option:hover {
  border-color: var(--primary-pink);
}

.flow-option input {
  display: none;
}

.flow-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.flow-dot.light { background: #FFCCE8; }
.flow-dot.medium { background: var(--menstrual-color); }
.flow-dot.heavy { background: var(--dark-pink); }

.flow-option:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.flow-option.selected {
  background: var(--primary-light);
  border-color: var(--dark-pink);
}

.save-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary-pink);
  color: #FFF;
  border: none;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-btn:hover {
  background: var(--dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 112, 200, 0.3);
}

.symptoms-summary {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-pink);
}

.delete-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--menstrual-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.delete-btn:hover {
  background: var(--menstrual-color);
  transform: scale(1.1);
}

.delete-btn.hidden {
  display: none;
}

.summary-box {
  background: var(--light-pink);
  border-radius: 12px;
  padding: 16px;
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--card-bg);
  border-radius: 20px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid var(--light-pink);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #666;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--menstrual-light);
  color: var(--dark-pink);
}

.modal-body {
  padding: 24px;
}

/* ==================== INFO CARDS ==================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}

.info-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 10px;
}

.info-card-text {
  color: var(--text-color);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ==================== WHY SECTION ==================== */
.why-content {
  text-align: center;
  padding: 24px;
}

.why-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 16px;
}

.why-text {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: absolute;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: var(--card-bg);
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-menu-overlay.active .mobile-nav {
  right: 0;
}

.mobile-nav .nav-link {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .header {
    padding: 10px 16px;
  }
  
  .header-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-pink);
    color: #FFF;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
  }
  
  .main-container {
    padding-top: 68px;
  }
  
  .section-container {
    padding: 24px 16px;
  }
  
  .section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .section-header h2 {
    font-size: 1.2rem;
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .dashboard-card {
    padding: 18px;
  }
  
  .calendar-day {
    font-size: 0.85rem;
  }
  
  .symptoms-wrapper {
    grid-template-columns: 1fr;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .landing-page {
    padding: 32px 16px;
  }
  
  .letter {
    font-size: 2.5rem;
  }
  
  .logo-icon {
    width: 140px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .flow-options {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==================== CYCLE HEALTH SURVEY ==================== */
#cycle-survey {
  background: linear-gradient(135deg, var(--light-pink) 0%, #FFF 50%, var(--follicular-soft) 100%);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px var(--shadow);
}

#cycle-survey .section-header {
  border-bottom-color: var(--menstrual-light);
}

.survey-intro {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 28px;
  padding: 0 20px;
}

.survey-questions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.survey-question {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--menstrual-light);
}

.question-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 16px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--light-pink);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.survey-option:hover {
  border-color: var(--primary-pink);
  transform: translateY(-2px);
}

.survey-option input[type="radio"] {
  display: none;
}

.survey-option:has(input[type="radio"]:checked) {
  background: var(--primary-pink);
  color: #FFF;
  border-color: var(--dark-pink);
  box-shadow: 0 4px 16px rgba(255, 112, 200, 0.3);
}

.survey-submit-btn {
  width: 100%;
  max-width: 300px;
  margin: 32px auto 0;
  display: block;
  padding: 16px 32px;
  background: var(--primary-pink);
  color: #FFF;
  border: none;
  border-radius: 28px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 112, 200, 0.3);
}

.survey-submit-btn:hover {
  background: var(--dark-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 112, 200, 0.4);
}

/* Survey Results */
.results-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--menstrual-light);
  animation: fadeIn 0.5s ease;
}

.results-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark-pink);
  text-align: center;
  margin-bottom: 24px;
}

.summary-content {
  background: linear-gradient(135deg, var(--menstrual-soft) 0%, var(--follicular-soft) 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--menstrual-light);
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.summary-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.summary-text {
  flex: 1;
}

.summary-label {
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 4px;
}

.summary-value {
  color: var(--text-color);
  font-size: 0.95rem;
}

.suggestion-box {
  background: linear-gradient(135deg, var(--ovulation-soft) 0%, var(--follicular-soft) 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2px solid var(--ovulation-light);
  text-align: center;
}

.suggestion-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 12px;
}

.suggestion-text {
  color: var(--text-color);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.suggestion-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-pink);
  color: #FFF;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.suggestion-link:hover {
  background: var(--dark-pink);
  transform: translateY(-2px);
}

.medical-disclaimer {
  background: #FFF9E6;
  border: 2px solid #FFD93D;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.disclaimer-text {
  font-size: 0.9rem;
  color: #856404;
  line-height: 1.6;
  text-align: center;
  font-style: italic;
}

.survey-retake-btn {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
  padding: 12px 24px;
  background: var(--light-pink);
  color: var(--dark-pink);
  border: 2px solid var(--primary-pink);
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.survey-retake-btn:hover {
  background: var(--primary-pink);
  color: #FFF;
}

/* PCOS Alert in results */
.pcos-alert {
  background: linear-gradient(135deg, #FFE4E9 0%, #FFF0F3 100%);
  border: 2px solid var(--menstrual-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.pcos-alert-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pcos-alert-title {
  font-weight: 600;
  color: var(--dark-pink);
  margin-bottom: 8px;
}

.pcos-alert-text {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* Hormonal imbalance warning */
.hormone-warning {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
  border: 2px solid #FF9F43;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.hormone-warning-title {
  font-weight: 600;
  color: #E65100;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hormone-warning-text {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* Responsive survey */
@media (max-width: 768px) {
  #cycle-survey {
    padding: 20px;
  }
  
  .options-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .survey-option {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
  
  .results-card {
    padding: 20px;
  }
  
  .summary-item {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .survey-submit-btn {
    max-width: 100%;
  }
}

/* ==================== SURVEY SECTION ==================== */
#survey-intro-container {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--light-pink), #FFF);
  border-radius: 20px;
  margin-bottom: 20px;
}

.survey-intro {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 24px;
  line-height: 1.6;
}

.survey-start-btn {
  background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
  color: #FFF;
  border: none;
  padding: 16px 48px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(213, 0, 122, 0.3);
  transition: all 0.3s ease;
}

.survey-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 0, 122, 0.4);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth transitions for all interactive elements */
button, a, .card, .dashboard-card, .info-card, .calendar-day {
  -webkit-tap-highlight-color: transparent;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-pink);
  outline-offset: 2px;
}

/* ==================== SIDEBAR NAVIGATION ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
}

.sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-pink);
    border: none;
    font-size: 1.5rem;
    color: var(--dark-pink);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: var(--primary-pink);
    color: #FFF;
    transform: scale(1.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 24px;
    border-bottom: 2px solid var(--light-pink);
    margin-bottom: 16px;
}

.sidebar-logo img {
    width: 48px;
    height: 48px;
}

.sidebar-logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-pink);
}

.sidebar-nav {
    list-style: none;
    padding: 0 12px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: var(--light-pink);
    color: var(--dark-pink);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: var(--primary-pink);
    color: #FFF;
}

.sidebar-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.sidebar-text {
    flex: 1;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 2px solid var(--light-pink);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-footer .form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--light-pink);
    border: 2px solid var(--secondary-pink);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.sidebar-footer .form-select:focus {
    outline: none;
    border-color: var(--dark-pink);
}

.sidebar-theme-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--light-pink);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-theme-btn:hover {
    background: var(--primary-pink);
    transform: scale(1.02);
}

/* Sidebar Toggle Button (in header) */
.sidebar-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-pink);
    color: #FFF;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.sidebar-toggle:hover {
    background: var(--dark-pink);
    transform: scale(1.05);
}

/* Adjust header when sidebar is present */
.header {
    left: 0;
}

.main-container {
    padding-top: 72px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Responsive: Hide sidebar on mobile, use toggle */
@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        width: 85%;
        max-width: 300px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
}

/* ==================== DIET & RECOMMENDATIONS ==================== */
.diet-card {
    max-width: 100%;
}

.diet-content {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--light-pink);
}

.diet-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

.diet-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-pink);
    margin-bottom: 12px;
    margin-top: 20px;
}

.diet-subtitle:first-of-type {
    margin-top: 0;
}

.diet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.diet-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}

.diet-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
    font-weight: 700;
}

.diet-activity {
    background: linear-gradient(135deg, var(--follicular-soft) 0%, var(--ovulation-soft) 100%);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    border-left: 4px solid var(--ovulation-color);
}

.diet-activity .diet-subtitle {
    margin-top: 0;
    margin-bottom: 8px;
}

.diet-activity p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.diet-source {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-top: 20px;
    text-align: right;
}

/* ==================== NEARBY WELLNESS STUDIOS ==================== */

/* Nearby Studios Modal */
.nearby-modal {
    max-width: 700px;
    max-height: 90vh;
}

.nearby-modal .modal-body {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    padding: 20px;
}

/* Sections */
.nearby-section {
    text-align: center;
    padding: 20px 0;
}

/* Location Request */
.location-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.location-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.location-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 16px;
    font-style: italic;
}

/* City Search */
.city-search-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-pink);
}

.city-search-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 12px;
    display: block;
}

.city-search-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.city-input {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid var(--secondary-pink);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.city-input:focus {
    outline: none;
    border-color: var(--dark-pink);
    box-shadow: 0 0 0 4px rgba(213, 0, 122, 0.1);
}

.city-search-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 12px;
    font-style: italic;
}

.error-city-search {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-pink);
}

/* Responsive city search */
@media (max-width: 480px) {
    .city-search-input-group {
        flex-direction: column;
    }
    
    .city-input {
        max-width: 100%;
    }
    
    .city-search-btn {
        width: 100%;
    }
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-pink);
    border-top-color: var(--primary-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 1rem;
}

/* Error */
.error-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.error-text {
    color: var(--text-color);
    margin-bottom: 16px;
    font-size: 1rem;
}

/* Controls */
.nearby-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--light-pink);
    border-radius: 12px;
}

.filter-group,
.sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label,
.sort-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.filter-group .form-select,
.sort-group .form-select {
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    min-width: 120px;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--secondary-pink);
    background: var(--card-bg);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    border-color: var(--primary-pink);
    background: var(--light-pink);
}

.view-btn.active {
    background: var(--primary-pink);
    border-color: var(--dark-pink);
}

/* Studio Cards */
.studios-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.studio-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px var(--shadow);
    border: 2px solid var(--light-pink);
    transition: all 0.2s ease;
    cursor: pointer;
}

.studio-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.studio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.studio-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-pink);
    margin: 0;
    flex: 1;
}

.studio-category {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: capitalize;
}

.studio-category.yoga {
    background: #E8F5E9;
    color: #2E7D32;
}

.studio-category.pilates {
    background: #FFF3E0;
    color: #E65100;
}

.studio-category.gym {
    background: #E3F2FD;
    color: #1565C0;
}

.dark-mode .studio-category.yoga {
    background: #1B5E20;
    color: #A5D6A7;
}

.dark-mode .studio-category.pilates {
    background: #BF360C;
    color: #FFCCBC;
}

.dark-mode .studio-category.gym {
    background: #0D47A1;
    color: #90CAF9;
}

.studio-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.studio-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.studio-info-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.studio-distance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-pink);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--light-pink);
}

.studio-distance-icon {
    font-size: 1rem;
}

/* Map View */
.studios-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.studios-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Results Count */
.results-count {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 16px;
}

/* No Results */
.no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.no-results-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.no-results-hint {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.no-results-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.no-results-city-search {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 350px;
}

.no-results-city-search .city-input {
    flex: 1;
    min-width: 150px;
}

/* ==================== TRUSTED RESOURCES MODAL ==================== */
.trusted-resources-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 24px;
    padding: 16px;
    background: var(--light-pink);
    border-radius: 12px;
}

.trusted-resources-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trusted-resource-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 2px solid var(--light-pink);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.trusted-resource-link:hover {
    border-color: var(--primary-pink);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.resource-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-pink);
    border-radius: 10px;
}

.resource-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-pink);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--follicular-soft) 100%);
    padding: 24px 16px;
    text-align: center;
    border-top: 2px solid var(--secondary-pink);
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-email {
    font-size: 0.85rem;
    color: var(--dark-pink);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-email:hover {
    color: var(--primary-pink);
    transform: scale(1.02);
}

.osm-attribution {
    font-size: 0.75rem;
    color: #666;
    margin-top: 12px;
    opacity: 0.8;
}

/* Dark mode footer */
.dark-mode .footer {
    background: linear-gradient(135deg, #2A1A25 0%, #2A2035 100%);
    border-top-color: #4A2035;
}

.dark-mode .footer-text {
    color: #E0E0E0;
}

.dark-mode .footer-email {
    color: #FF80AB;
}

.dark-mode .footer-email:hover {
    color: #FF4081;
}

.dark-mode .osm-attribution {
    color: #999;
}

/* Responsive footer */
@media (max-width: 480px) {
    .footer {
        padding: 20px 12px;
    }
    
    .footer-text,
    .footer-email {
        font-size: 0.8rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nearby-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .nearby-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group,
    .sort-group {
        width: 100%;
    }
    
    .filter-group .form-select,
    .sort-group .form-select {
        flex: 1;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .studios-list {
        max-height: 300px;
    }
}
