/* ================================================
   PantryBridge — Shared Stylesheet
   ================================================ */

/* CSS Variables */
:root {
  --brand-primary: #0ea85e;
  --brand-secondary: #7cb518;
  --accent-warm: #e07a3a;
  --accent-warm-light: #fef3eb;
  --dark-blue: #233252;
  --darker-blue: #1a2640;
  --light-bg: #f5f3ef;
  --lighter-bg: #faf8f5;
  --text-dark: #2d2926;
  --text-gray: #5c5752;
  --text-light: #8a8480;
  --white: #ffffff;
  --border-light: #e5e0da;
  --shadow: rgba(45, 41, 38, 0.12);
  --shadow-brand: rgba(14, 168, 94, 0.35);
  --shadow-xs: 0 1px 2px rgba(45, 41, 38, 0.05);
  --shadow-sm: 0 1px 3px rgba(45, 41, 38, 0.08), 0 1px 2px rgba(45, 41, 38, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 41, 38, 0.08), 0 2px 4px rgba(45, 41, 38, 0.04);
  --shadow-lg: 0 10px 30px rgba(45, 41, 38, 0.1), 0 4px 8px rgba(45, 41, 38, 0.05);
  --shadow-xl: 0 20px 50px rgba(45, 41, 38, 0.12), 0 8px 16px rgba(45, 41, 38, 0.06);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Lucide icon sizing */
.lucide {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-md {
  width: 20px;
  height: 20px;
}
.icon-lg {
  width: 24px;
  height: 24px;
}
.icon-xl {
  width: 32px;
  height: 32px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--dark-blue);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 0.9rem;
  border-radius: 0 0 6px 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

*:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Remove default outline when using mouse */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8e2d9 100%);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================
   Header & Navigation
   ================================================ */
header {
  background: var(--dark-blue);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--white);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  font-size: 2.5rem;
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.header-contact {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  align-items: center;
  white-space: nowrap;
}

/* Header Language Selector */
.language-selector-header {
  display: flex;
  gap: 5px;
  margin-right: 10px;
}

/* Desktop language selector - hidden on mobile */
.language-selector-desktop {
  display: flex;
}

/* Mobile language selector - hidden on desktop */
.language-selector-mobile {
  display: none;
}

.language-selector-header button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-selector-header button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.language-selector-header button.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
}

.header-contact a {
  color: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-contact a:hover {
  color: var(--brand-primary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

/* Auth Nav Links */
.login-nav-link {
  background: var(--brand-primary) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

.login-nav-link:hover {
  background: var(--dark-blue) !important;
}

#adminNavItem {
  align-self: center;
}

#adminNavItem .admin-nav-link {
  background: var(--dark-blue) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

#adminNavItem .admin-nav-link:hover {
  background: var(--brand-primary) !important;
}

.user-nav-link {
  color: var(--brand-primary) !important;
  font-weight: 500 !important;
}

/* Navigation */
nav {
  padding: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 5px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--brand-primary);
  text-decoration: none;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--darker-blue);
  min-width: 220px;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
  border-radius: 0 0 10px 10px;
}

/* Mobile Header Controls */
.mobile-header-controls {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* Mobile Login Link — visible only on mobile, next to hamburger */
.mobile-login-link {
  display: none;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.hero-logo {
  margin-bottom: 24px;
}

.hero-logo-img {
  max-width: 200px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.hero .hero-tagline {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 30px;
}

/* ================================================
   Main Content Area
   ================================================ */
main {
  padding: 50px 0;
}

.content-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--brand-primary);
  padding: 40px;
  margin-bottom: 30px;
  transition: box-shadow 0.2s ease;
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
}

.page-title h2 {
  color: var(--dark-blue);
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-title p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Section Styling */
.section {
  margin-bottom: 40px;
}

.section h3 {
  color: var(--dark-blue);
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-bg);
}

.section p {
  color: var(--text-gray);
  margin-bottom: 15px;
}

/* Info Box */
.info-box {
  background: var(--lighter-bg);
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid var(--brand-primary);
  margin: 20px 0;
}

.info-box h4 {
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.info-box p {
  margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
  color: var(--white);
  padding: 30px;
  border-radius: 15px;
  margin: 25px 0;
}

.highlight-box h3 {
  color: white;
  border-bottom: none;
  margin-bottom: 15px;
}

.highlight-box p {
  color: rgba(255, 255, 255, 0.9);
}

/* ================================================
   Photo Carousel
   ================================================ */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 15px;
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
  animation: carouselFadeIn 0.5s ease;
}

.carousel-slide img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: var(--lighter-bg);
}

.carousel-caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: white;
  padding: 30px 20px 15px;
  font-size: 1rem;
  text-align: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.carousel-arrow:hover {
  background: white;
}

.carousel-arrow.prev {
  left: 12px;
}

.carousel-arrow.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.carousel-dot.active {
  background: white;
}

@keyframes carouselFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .carousel-wrapper {
    max-height: 250px;
  }

  .carousel-slide img {
    max-height: 250px;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }
}

/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn > .lucide {
  margin-right: 6px;
  vertical-align: -2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #07a34b 100%);
  color: var(--white);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--dark-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--darker-blue);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: var(--white);
  text-decoration: none;
}

/* ================================================
   Cards & Grids
   ================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.card {
  background: var(--lighter-bg);
  padding: 30px;
  border-radius: 15px;
  border: 2px solid var(--light-bg);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  text-align: center;
}

.card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.card h4 {
  color: var(--dark-blue);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ================================================
   Stats Section
   ================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-box {
  background: var(--light-bg);
  padding: 25px 15px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark-blue);
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ================================================
   Progress Bar (Fundraising)
   ================================================ */
.progress-section {
  margin: 40px 0;
}

.amounts {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.amount-raised {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.amount-goal {
  font-size: 1.2rem;
  color: var(--text-gray);
  text-align: right;
}

.amount-goal span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-blue);
}

.progress-bar-container {
  background: var(--light-bg);
  border-radius: 25px;
  height: 50px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  height: 100%;
  border-radius: 25px;
  width: 0%;
  transition: width 2s ease-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* ================================================
   FAQ Accordion
   ================================================ */
.faq-list {
  margin: 30px 0;
}

.faq-item {
  background: var(--lighter-bg);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--light-bg);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brand-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-gray);
  line-height: 1.7;
}

/* ================================================
   Lists
   ================================================ */
.item-list {
  list-style: none;
  margin: 20px 0;
}

.item-list li {
  padding: 12px 0 12px 35px;
  position: relative;
  border-bottom: 1px solid var(--light-bg);
  color: var(--text-gray);
}

.item-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: bold;
}

.item-list li:last-child {
  border-bottom: none;
}

/* Category Lists */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.category {
  background: var(--lighter-bg);
  padding: 25px;
  border-radius: 15px;
}

.category h4 {
  color: var(--dark-blue);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-primary);
}

.category ul {
  list-style: none;
}

.category li {
  padding: 8px 0;
  color: var(--text-gray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category li:last-child {
  border-bottom: none;
}

/* ================================================
   Events/News
   ================================================ */
.event-card {
  background: var(--lighter-bg);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 5px solid var(--brand-primary);
}

.event-date {
  display: inline-block;
  background: var(--dark-blue);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.event-card h4 {
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.event-card p {
  color: var(--text-gray);
}

.announcement-card {
  padding: 15px;
  border: 1px solid #e8e4de;
  border-radius: 10px;
  margin-bottom: 12px;
}
.announcement-card.pinned {
  border-left: 3px solid var(--accent-warm);
  background: rgba(224, 122, 58, 0.03);
}
.announcement-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.announcement-header h4 {
  margin: 0;
  flex: 1;
  color: var(--dark-blue);
}
.announcement-date {
  font-size: 0.8rem;
  color: var(--text-gray);
}
.announcement-pin svg {
  width: 14px;
  height: 14px;
  color: var(--accent-warm);
}
.announcement-excerpt {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 8px;
}
.announcement-link {
  font-size: 0.85rem;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}
.announcement-link:hover {
  text-decoration: underline;
}

/* ================================================
   Contact Info
   ================================================ */
.contact-section {
  text-align: center;
  padding: 30px;
  background: var(--lighter-bg);
  border-radius: 15px;
  margin-top: 30px;
}

.contact-section h3 {
  color: var(--dark-blue);
  margin-bottom: 20px;
  border: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin: 20px 0;
}

.contact-item {
  padding: 20px;
}

.contact-item .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-item h4 {
  color: var(--dark-blue);
  margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
  color: var(--text-gray);
}

.hours-badge {
  display: inline-block;
  background: var(--dark-blue);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 0.9rem;
}

/* ================================================
   Footer
   ================================================ */
footer {
  background: var(--dark-blue);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 30px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-section p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--brand-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 5px 0;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--brand-primary);
  transform: translateY(-3px);
  text-decoration: none;
}

/* ================================================
   Collapsing Mobile Header
   ================================================ */

/* Smooth transition for header collapse */
header {
  transition: none;
}

header .header-top {
  transition: padding 0.3s ease;
}

header .logo-icon,
header .logo-text .tagline,
header .header-contact {
  transition:
    opacity 0.25s ease,
    max-height 0.3s ease,
    margin 0.3s ease,
    padding 0.3s ease;
}

/* Compact header state (applied via JS on scroll for mobile) */
@media (max-width: 768px) {
  header.header-compact .header-top {
    padding: 8px 0;
    gap: 0;
    border-bottom: none;
  }

  header.header-compact .logo-icon {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  header.header-compact .logo {
    gap: 0;
  }

  header.header-compact .logo-text h1 {
    font-size: 0.95rem;
  }

  header.header-compact .logo-text .tagline {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    display: block;
    margin: 0;
    line-height: 0;
  }

  header.header-compact .header-contact {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  header.header-compact .menu-toggle {
    padding: 5px 10px;
  }

  /* Language selectors (both homepage and header variants) */
  header.header-compact .language-selector-home,
  header.header-compact .language-selector-header {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 900px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header-contact {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-list {
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Header: hide contact info, keep logo compact */
  .header-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 10px 0;
  }

  .header-contact {
    display: none;
  }

  /* Show mobile controls with language selector */
  .mobile-header-controls {
    display: flex;
  }

  .language-selector-desktop {
    display: none;
  }

  .language-selector-mobile {
    display: flex;
  }

  .mobile-header-controls .menu-toggle {
    display: block;
  }

  .mobile-login-link {
    display: block;
  }

  .logo-icon {
    font-size: 1.8rem;
  }

  .logo {
    gap: 10px;
  }

  .logo-text h1 {
    font-size: 1.15rem;
  }

  .logo-text .tagline {
    font-size: 0.7rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
  }

  nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    text-align: center;
  }

  /* Disable hover-based dropdown on mobile - require tap to open */
  .dropdown-menu,
  .dropdown:hover > .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.1);
  }

  /* Show dropdown when parent has .open class (tap to toggle) */
  .dropdown.open > .dropdown-menu {
    display: block;
  }

  .content-card {
    padding: 25px;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
  }

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

  .amount-raised {
    font-size: 1.8rem;
  }

  .footer-grid {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Hero section: reduce padding on mobile */
  .hero {
    padding: 35px 0;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-logo-img {
    max-width: 160px;
    max-height: 110px;
  }

  /* Page titles: scale down */
  .page-title h2 {
    font-size: 1.6rem;
  }

  /* Section headings */
  .section h3 {
    font-size: 1.2rem;
  }

  /* Card icons */
  .card-icon {
    font-size: 2.2rem;
  }

  /* Footer: reduce padding */
  footer {
    padding: 35px 0 20px;
    margin-top: 30px;
  }

  .footer-grid {
    gap: 25px;
  }

  /* Ensure minimum touch target size for buttons */
  .btn {
    min-height: 44px;
  }

  /* Make data tables horizontally scrollable */
  .data-table-wrapper,
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 600px;
  }

  /* Footer links: ensure touch-friendly spacing */
  .footer-section ul li {
    padding: 8px 0;
  }

  .footer-section ul li a {
    display: block;
    padding: 4px 0;
  }
}

@media (max-width: 480px) {
  .logo-icon {
    font-size: 1.5rem;
  }

  .logo-text h1 {
    font-size: 1rem;
  }

  .logo-text .tagline {
    font-size: 0.65rem;
  }

  .hero {
    padding: 25px 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .hero-tagline {
    font-size: 1rem;
  }

  .hero-logo-img {
    max-width: 120px;
    max-height: 84px;
    border-radius: 12px;
    padding: 8px;
  }

  /* Buttons: more compact on small phones */
  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .content-card {
    padding: 20px 15px;
  }

  .page-title h2 {
    font-size: 1.4rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .card {
    padding: 20px;
  }

  /* FAQ: tighter padding */
  .faq-question {
    padding: 15px 18px;
    font-size: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 15px;
  }

  /* Footer */
  footer {
    padding: 25px 0 15px;
    margin-top: 20px;
  }

  /* Ensure links and buttons have adequate touch targets */
  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Form inputs: full width and larger on small phones */
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  input[type='password'],
  textarea,
  select {
    width: 100%;
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* ================================================
   Multi-Tenant Platform Styles
   ================================================ */

/* Organization branding is applied via OrgContext.applyBranding() which
   overrides --brand-primary and --brand-secondary at runtime */

/* Language Selector */
.language-selector {
  display: flex;
  gap: 5px;
  align-items: center;
}

.language-selector button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-selector button:hover,
.language-selector button.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
}

.language-selector select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ================================================
   Forms & Inputs
   ================================================ */
.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  color: var(--dark-blue);
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-bg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

label .required {
  color: #dc3545;
  margin-left: 3px;
}

label .optional {
  color: var(--text-light);
  font-weight: normal;
  font-size: 0.9em;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(14, 168, 94, 0.12);
}

/* Validation states */
input.valid,
select.valid,
textarea.valid {
  border-color: var(--brand-primary);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

input.error,
select.error,
textarea.error {
  border-color: #dc3545;
  animation: shake 0.4s ease;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--light-bg);
  color: var(--text-light);
  cursor: not-allowed;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Checkbox & Radio */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-group.horizontal,
.radio-group.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-item input[type='checkbox'],
.radio-item input[type='radio'] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-primary);
  border: 2px solid var(--border-light);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.radio-item input[type='radio'] {
  border-radius: 50%;
}

.checkbox-item input[type='checkbox']:checked,
.radio-item input[type='radio']:checked {
  border-color: var(--brand-primary);
}

/* Form Help Text */
.help-text {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.error-text {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #dc3545;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--light-bg);
}

.form-actions.center {
  justify-content: center;
}

.form-actions.right {
  justify-content: flex-end;
}

.form-actions.between {
  justify-content: space-between;
}

/* ================================================
   Authentication Pages
   ================================================ */
.auth-container {
  max-width: 450px;
  margin: 40px auto;
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  color: var(--dark-blue);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.auth-header p {
  color: var(--text-gray);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--light-bg);
  margin-bottom: 25px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab:hover {
  color: var(--dark-blue);
}

.auth-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
  padding: 0 15px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--light-bg);
}

.auth-footer p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Phone Verification */
.verification-input {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.verification-input input {
  width: 45px;
  height: 55px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 10px;
}

/* reCAPTCHA Container */
.recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* ================================================
   Dashboard & Portal Styles
   ================================================ */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.dashboard-header h1 {
  color: var(--dark-blue);
  font-size: 1.8rem;
}

.dashboard-welcome {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #07a34b 100%);
  color: var(--white);
  padding: 25px 30px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.dashboard-welcome h2 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.dashboard-welcome p {
  opacity: 0.9;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.approved,
.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.matched {
  background: #cce5ff;
  color: #004085;
}

.status-badge.completed {
  background: #d1ecf1;
  color: #0c5460;
}

.status-badge.cancelled,
.status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--lighter-bg);
  color: var(--dark-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tr:hover {
  background: var(--lighter-bg);
}

.data-table .actions {
  white-space: nowrap;
}

.data-table .actions button,
.data-table .actions a {
  padding: 5px 10px;
  margin-right: 5px;
  font-size: 0.85rem;
}

/* ================================================
   Household Members Section
   ================================================ */
.member-card {
  background: var(--lighter-bg);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  border: 2px solid var(--light-bg);
  position: relative;
}

.member-card .member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.member-card .member-number {
  background: var(--dark-blue);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.member-card .remove-member {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: transform 0.2s;
}

.member-card .remove-member:hover {
  transform: scale(1.1);
}

.add-member-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 20px;
  background: var(--lighter-bg);
  border: 2px dashed var(--border-light);
  border-radius: 15px;
  color: var(--text-gray);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-member-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(14, 168, 94, 0.05);
}

/* ================================================
   Program Selection Cards
   ================================================ */
.program-card {
  background: var(--lighter-bg);
  border-radius: 15px;
  padding: 25px;
  border: 2px solid var(--light-bg);
  transition: all 0.3s ease;
  cursor: pointer;
}

.program-card:hover {
  border-color: var(--brand-primary);
}

.program-card.selected {
  border-color: var(--brand-primary);
  background: rgba(14, 168, 94, 0.05);
}

.program-card input[type='checkbox'] {
  display: none;
}

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

.program-card .program-icon {
  font-size: 2rem;
}

.program-card h4 {
  color: var(--dark-blue);
  font-size: 1.1rem;
}

.program-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-left: 55px;
}

.program-options {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
  margin-left: 55px;
}

/* ================================================
   Landing Page - Choose Path
   ================================================ */
.path-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.path-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.path-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-primary);
}

.path-card .path-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.path-card h3 {
  color: var(--dark-blue);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.path-card p {
  color: var(--text-gray);
  margin-bottom: 25px;
  min-height: 60px;
}

/* Organization Selection Grid */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.org-card {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s ease;
  border: 2px solid var(--light-bg);
  cursor: pointer;
}

.org-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-5px);
}

.org-card.selected {
  border-color: var(--brand-primary);
  background: rgba(14, 168, 94, 0.05);
}

.org-card h4 {
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.org-card .org-districts {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ================================================
   Alerts & Notifications
   ================================================ */
.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-content strong {
  display: block;
  margin-bottom: 3px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

/* ================================================
   Loading States
   ================================================ */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--light-bg);
  border-radius: 50%;
  border-top-color: var(--brand-primary);
  animation: spin 1s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay p {
  margin-top: 15px;
  color: var(--text-gray);
}

.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

/* ================================================
   Stepper / Progress Steps
   ================================================ */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: var(--light-bg);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--brand-primary);
  color: var(--white);
}

.step.completed .step-number {
  background: var(--brand-primary);
  color: var(--white);
}

.step.completed .step-number::after {
  content: '✓';
}

.step-label {
  font-size: 0.85rem;
  color: var(--text-gray);
  text-align: center;
}

.step.active .step-label {
  color: var(--dark-blue);
  font-weight: 500;
}

/* ================================================
   Responsive Additions
   ================================================ */
@media (max-width: 768px) {
  .auth-card {
    padding: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .path-selection {
    grid-template-columns: 1fr;
  }

  .stepper {
    flex-direction: column;
    gap: 20px;
  }

  .stepper::before {
    display: none;
  }

  .step {
    flex-direction: row;
    gap: 15px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .verification-input input {
    width: 40px;
    height: 50px;
    font-size: 1.3rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-pending {
  background: #fff8e6;
  color: #9a6700;
}
.badge-pending::before {
  background: #d4940a;
}
.badge-active,
.badge-approved {
  background: #e8f8ef;
  color: #0d7a3e;
}
.badge-active::before,
.badge-approved::before {
  background: #0ea85e;
}
.badge-matched {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-matched::before {
  background: #43a047;
}
.badge-completed {
  background: #f0f0ee;
  color: #5c5752;
}
.badge-completed::before {
  background: #8a8480;
}
.badge-cancelled,
.badge-rejected {
  background: #fde8e8;
  color: #c02424;
}
.badge-cancelled::before,
.badge-rejected::before {
  background: #e53935;
}

/* ================================================
   Animations & Micro-interactions
   ================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

/* Staggered card entrance animation */
.card-grid > * {
  animation: fadeInUp 0.4s ease both;
}
.card-grid > *:nth-child(1) {
  animation-delay: 0s;
}
.card-grid > *:nth-child(2) {
  animation-delay: 0.06s;
}
.card-grid > *:nth-child(3) {
  animation-delay: 0.12s;
}
.card-grid > *:nth-child(4) {
  animation-delay: 0.18s;
}
.card-grid > *:nth-child(5) {
  animation-delay: 0.24s;
}
.card-grid > *:nth-child(6) {
  animation-delay: 0.3s;
}

/* Content card entrance */
.content-card {
  animation: fadeInUp 0.4s ease both;
}

/* Loading skeleton shimmer */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--lighter-bg) 25%,
    var(--light-bg) 50%,
    var(--lighter-bg) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}
.skeleton-heading {
  height: 1.5em;
  width: 60%;
  margin-bottom: 1em;
}

/* Toast slide-in */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast {
  animation: slideInRight 0.3s ease;
}
