/* ManageExpiry Custom Styles & Animations */

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

:root {
  --primary-emerald: #10B981;
  --primary-dark: #047857;
  --accent-teal: #0D9488;
  --accent-amber: #F59E0B;
  --accent-rose: #EF4444;
  --whatsapp-green: #25D366;
  --bg-gradient-from: #F0FDF4;
  --bg-gradient-to: #F8FAFC;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Glassmorphism Navigation */
.nav-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.nav-glass.scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.95);
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-1deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

@keyframes scannerLine {
  0% {
    top: 10%;
  }
  50% {
    top: 85%;
  }
  100% {
    top: 10%;
  }
}

.animate-float-1 {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-2 {
  animation: floatReverse 7s ease-in-out infinite 1s;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

.animate-scanner {
  animation: scannerLine 3s ease-in-out infinite;
}

/* Realistic Smartphone Frame */
.phone-frame {
  width: 100%;
  max-width: 310px;
  height: 620px;
  background: #0F172A;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 
    0 25px 50px -12px rgba(16, 185, 129, 0.15),
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 40px rgba(16, 185, 129, 0.1);
  position: relative;
  margin: 0 auto;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dynamic Notch / Island */
.phone-notch {
  width: 110px;
  height: 24px;
  background: #0F172A;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
}

/* Floating Notification Card Badge */
.floating-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-radius: 16px;
}

/* Expiry Status Indicator Pills */
.status-urgent {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.status-warning {
  background-color: #FFFBEB;
  color: #D97706;
  border: 1px solid #FCD34D;
}

.status-safe {
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #6EE7B7;
}

/* WhatsApp Notification Box */
.whatsapp-bubble {
  background-color: #E7FCE3;
  border-left: 4px solid #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.12);
}

/* Custom Scrollbar for Phone Mockup Content */
.phone-screen-scroll::-webkit-scrollbar {
  width: 4px;
}

.phone-screen-scroll::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 4px;
}

/* Accordion Smooth Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-answer.active {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0), opacity 0.3s ease;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate {
  transform: rotate(180deg);
}

/* Tabs for Interactive Screenshots */
.screenshot-tab.active {
  background-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* Modal Overlay backdrop */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}
