@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --color-primary-50: #f0fdf4;
  --color-primary-100: #dcfce7;
  --color-primary-500: #10b981;
  --color-primary-600: #059669;
  --color-primary-700: #047857;
  --color-primary-800: #065f46;
  --color-primary-900: #022c22;
  
  --color-slate-900: #0f172a;
  --color-slate-950: #090d16;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  font-family: var(--font-sans);
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

/* Gradients & Accents */
.gradient-brand {
  background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0284c7 100%);
}

.gradient-dark {
  background: linear-gradient(145deg, #090d16 0%, #0f172a 50%, #1e293b 100%);
}

.gradient-hero-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.glass-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Micro-interactions */
.card-hover {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
}

/* Interactive Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #059669;
  border: 3px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
  transition: transform 0.15s ease, background-color 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #047857;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #059669;
  border: 3px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
}

/* Quiz Options */
.quiz-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.quiz-option:hover {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.quiz-option.selected {
  border-color: #059669 !important;
  background-color: #ecfdf5 !important;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

/* Filter & Tag Pills */
.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.synergy-pill {
  transition: all 0.2s ease;
  cursor: pointer;
}

.synergy-pill.active {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.symptom-tag {
  transition: all 0.2s ease;
  cursor: pointer;
}

.symptom-tag.active {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

/* Chrono Tabs */
.chrono-tab {
  transition: all 0.2s ease;
  cursor: pointer;
}

.chrono-tab.active {
  background-color: #059669 !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Routine Checkboxes */
.routine-item {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.routine-item:has(input:checked) {
  background-color: #f0fdf4;
  border-color: #86efac;
}

.routine-item input:checked + label {
  color: #166534;
  font-weight: 600;
}

/* Toast Animation */
@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.toast-animate {
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print Stylesheet */
@media print {
  header, footer, #cookie-consent-banner, #scroll-top-btn, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .print-only {
    display: block !important;
  }
}