/* =============================================================
   Hay Fever SOS — Dashboard Beta CSS
   Coastal Clinical Wellness Theme
   ============================================================= */

:root {
  --color-ocean: #003642;
  --color-teal: #1B4D5A;
  --color-eucalyptus: #116A5C;
  --color-sage: #3B8A7A;
  --color-amber: #D97706;
  --color-crimson: #D9534F;
  --color-mist: #F4F8F7;
  --color-sand: #F7F5F0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 54, 66, 0.04);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism & Card Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(27, 77, 90, 0.08);
}

.wellness-card {
  background: #ffffff;
  border: 1px solid rgba(27, 77, 90, 0.09);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease-in-out, border-color 0.2s ease;
}

.wellness-card:hover {
  border-color: rgba(27, 77, 90, 0.2);
  box-shadow: 0 10px 25px -5px rgba(0, 54, 66, 0.06), 0 8px 10px -6px rgba(0, 54, 66, 0.03);
}

/* Traffic Light Gradients */
.sneeze-gradient-safe {
  background: linear-gradient(135deg, #116A5C 0%, #10B981 100%);
}

.sneeze-gradient-warn {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
}

.sneeze-gradient-danger {
  background: linear-gradient(135deg, #B91C1C 0%, #D9534F 100%);
}

/* Progress Bar animations */
.progress-fill-animate {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse animation for high alert */
@keyframes alertPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px 4px rgba(217, 83, 79, 0.25);
  }
}

.alert-pulse-active {
  animation: alertPulse 2.5s infinite ease-in-out;
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
.modal-backdrop.active {
  opacity: 1;
}

.modal-panel {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.modal-panel.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Smooth Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}
.accordion-content.expanded {
  max-height: 500px;
  transition: max-height 0.35s ease-in-out;
}

/* Checklist item checked styling */
.checklist-item.is-completed {
  background-color: rgba(17, 106, 92, 0.05);
  border-color: rgba(17, 106, 92, 0.3);
}

.checklist-item.is-completed .checklist-title {
  text-decoration: line-through;
  color: #64748B;
}

/* Mobile Drawer Navigation */
@media (max-width: 1023px) {
  #mobile-menu {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    z-index: 50 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
  }
  #mobile-menu.menu-closed {
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  #mobile-menu.menu-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
  }
}

@media (min-width: 1024px) {
  #mobile-menu {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  #floating-menu-btn {
    display: none !important;
  }
}

