/* General Container */
@font-face {
  font-family: 'quick-gaseous'; /* Name you'll use to reference the font */
  src: url('../fonts/GC-Quick-Gaseous-Demo-BF68c3dfca8e2e0.ttf') format('truetype'); /* Path relative to CSS file */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Improves performance */
}

/* Home Dot Button */
.home-dot {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.home-dot:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(240, 147, 251, 0.6);
}

/* Spotlight/Profile Button */
.spotlight-btn {
  position: fixed;
  top: 2rem;
  right: 6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border-radius: 50px;
  color: #ffffff;
  font-family: 'quick-gaseous', monospace;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.spotlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgb(255, 255, 255);
  background: cornflowerblue;
  transition: .1s;
}

.spotlight-btn svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  animation: starPulse 1.5s ease-in-out infinite;
}

.spotlight-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Hide spotlight button on mobile */
@media (max-width: 768px) {
  .spotlight-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    right: 5.5rem;
  }
  
  .spotlight-text {
    display: none;
  }
  
  .spotlight-btn svg {
    width: 24px;
    height: 24px;
  }
}

.dot-pulse {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: relative;
}

.dot-pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

body{
  font-family: 'quick-gaseous', sans-serif;
  background: linear-gradient(135deg, #00622c , #006240,#260033 100% );
}

.food-list-container {
  
  font-family: "quick-gaseous", sans-serif;
  width: 100vw;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0; /* Remove default padding for hero section */
  margin: 0 auto;
  
  /* Same radial gradient background as hero section */
  position: relative;
  background: linear-gradient(135deg, #c1c2e8 0%, #4f62cd 50%, #2e2eff 100%);
}

.food-list-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgb(255, 182, 182) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgb(204, 123, 241) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.food-list-container > * {
  position: relative;
  z-index: 1;
}

/* Hero Search Section - Relume-inspired */
.hero-search-section {
  background: linear-gradient(135deg, #c1c2e8 0%, #4f62cd 50%, #2e2eff 100%);
  padding: 4rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgb(255, 182, 182) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgb(204, 123, 241) 0%, transparent 50%);
  pointer-events: none;
}

.hero-search-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-search-title {
  font-family: "quick-gaseous", "Arial", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 100;
  color: rgb(0, 75, 27);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgb(255, 240, 240);
  letter-spacing: -0.02em;
}

.hero-search-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgb(255, 255, 255);
  margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.747);

  line-height: 1.2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* Hero Search Bar */
.hero-search-bar-container {
  margin-bottom: 2.5rem;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 94, 39, 0.95);
  backdrop-filter: blur(50px);
  border-radius: 60px;
  padding: 0.75rem;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 700px;
  margin: 0 auto;
}

.hero-search-bar:hover {
  box-shadow: 
    0 20px 60px rgb(255, 0, 0),
    0 0 0 1px rgb(0, 4, 255);
  transform: translateY(-2px);
}

.hero-search-bar:focus-within {
  box-shadow: 
    0 20px 60px rgb(255, 0, 0),
    0 0 0 1px rgb(0, 4, 255);  transform: translateY(-2px);
}

.search-icon-wrapper {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: #ffffff;
}

.search-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.2rem;
  padding: 1rem 0.5rem;
  color: #00ff04;
  font-weight: 500;
}

.hero-search-input::placeholder {
  color: #ff9393;
  font-weight: 400;
}

.hero-search-btn {
  background: linear-gradient(135deg, #f4c430, #ff8c00);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(244, 196, 48, 0.3);
  white-space: nowrap;
}

.hero-search-btn:hover {
  background: linear-gradient(135deg, #dba564, #c89450);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.hero-search-btn:active {
  transform: translateY(0);
}

/* Quick Filters */
.quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-filters-label {
  color: rgb(255, 255, 255);
  font-weight: 500;
  font-size: 0.95rem;
}

.quick-filter-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-filter-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.quick-filter-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.quick-filter-pill.active {
  background: rgba(244, 196, 48, 0.9);
  border-color: #f4c430;
  color: #2f5233;
  font-weight: 600;
}

/* Advanced Filters Section */
.advanced-filters-section {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  margin: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.advanced-filters-content {
  max-width: 1200px;
}

.filters-row {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
  .hero-search-section {
    padding: 3rem 1rem 4rem;
  }
  
  .hero-search-bar {
    flex-direction: column;
    padding: 1rem;
    border-radius: 16px;
  }
  
  .hero-search-input {
    padding: 1rem;
    text-align: center;
  }
  
  .hero-search-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 1rem;
  }
  
  .quick-filters {
    flex-direction: column;
    gap: 1rem;
  }
  
  .advanced-filters-section {
    margin: 0 1rem 2rem;
    padding: 1.5rem;
  }
  
  .filters-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Grid Layout */
.food-grid {
  
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Exactly 5 columns per row */
  gap: 1.5rem;
  width: 100%;
  max-width: 1400px; /* Maximum width to prevent cards from getting too wide */
  box-sizing: border-box;
  margin: 0 auto;
  padding: 1rem 0;
  
  /* Same radial gradient background as hero section */
  position: relative;
  border-radius: 20px;
  padding: 2rem;
}

.food-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgb(255, 182, 182) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgb(204, 123, 241) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 20px;
  z-index: 0;
}

.food-grid > * {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments for smaller screens (mobile-only: 3 columns) */
@media (max-width: 768px) {
  .food-grid {
    /* show 2 columns on mobile */
    grid-template-columns: repeat(2, 1fr);
    padding: 0.75rem;
  }

  .food-card {
    /* allow cards to size naturally and be a bit more compact on phones */
    height: auto;
    padding: 0.6rem;
  }

  .food-card-image-placeholder {
    height: 56px;
    margin-bottom: 0.5rem;
  }

  .food-card-name {
    text-align: center;
    font-size: 0.9rem;
  }

  .food-card-rating { font-size: 1rem; }
}

/* Keep a usable layout even on very narrow phones */
@media (max-width: 360px) {
  .food-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .food-card-image-placeholder { height: 48px; }
  .food-card-name { font-size: 0.9rem; }
}

/* Food Card */
.food-card {
    background: 
    radial-gradient(circle at 20% 80%, rgb(0, 107, 39) 25%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgb(106, 0, 141) 20%, transparent 50%),
    radial-gradient(circle at -20% -10%, rgb(0, 59, 153) 20%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgb(90, 164, 90) 25%, transparent 50%);
  border: 2px solid #dba564;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.436);
  cursor: pointer;
  text-align: center;
  padding: 1rem;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
  height: 280px; /* Fixed height to prevent stretching */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 100%; /* Prevent overflow */
  overflow: hidden;
  position: relative; /* For absolute positioning of favorite button */
}

.food-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.743);
  border-color: #f4c430;
}

.food-card-image-placeholder {
  width: 100%;
  height: 80px;
  background-color: #1a680f;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.food-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.food-card-name {
  font-size: 1.3rem;
  font-weight: 100;
  color: #fffefd;
  margin: 0;
  line-height: 1.2;
}

.food-card-category {
  background-color: #dba564;
  color: #1d0443;
  padding: 0.25rem 0.5rem;
  border-radius: 55px;
  font-size: 0.8rem;
  display: inline-block;
  font-weight: 800;
}

.food-card-rating {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0.5rem 0;
  border-radius: 20px;
}

.food-card-details {
  color: #ffd4d4;
  font-size: 0.9rem;
  margin-top: auto;
}

.food-card-brand {
  color: #00ff11;
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgb(12, 119, 57);
  backdrop-filter: blur(5px);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  line-height: 1;
}

.favorite-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 70, 29, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
}

.favorite-btn.favorited {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

.favorite-btn.favorited:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

/* Toast Animation Keyframes */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:transparent;
  opacity: 98%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #7f95ff;
  /* animation: randomGreenLava 5s ease-in-out infinite; */ /* Commented out */
  padding: 1.5rem;
  width: 85vw;
  height: 85vh;
  max-width: 1000px;
  max-height: 800px;
  min-width: 500px;
  min-height: 500px;
  border-radius: 30px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 40px rgb(138, 0, 0);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 55px;
  backdrop-filter: blur(2px);
  z-index: 1;
}

.modal-content > * {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

/* Commented out - animation removed in favor of radial gradient */
/*
@keyframes randomGreenLava {
  0% {
    background-position: 0% 50%;
    transform: rotate(2deg);
  }
  25% {
    background-position: 100% 30%;
    transform: rotate(1deg);
  }
  50% {
    background-position: 50% 100%;
    transform: rotate(-0.5deg);
  }
  75% {
    background-position: 20% 20%;
    transform: rotate(1deg);
  }
  100% {
    background-position: 0% 50%;
    transform: rotate(2deg);
  }
}
*/
  /* border-radius: 6px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  position: relative;
} */

.modal-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: #af0000;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.food-rating {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4caf50; /* Green for good rating */
}

.food-parameters {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.food-parameters li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.alternative-card {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

/* New Auth Modal Styles */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001; /* Higher than the food modal */
}

.auth-modal-content {
  position: relative;
  padding: 2rem;
  background: #2c2c2c; /* A dark theme for the auth box */
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 450px;
}

.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.login-btn, .logout-btn {
  background-color: #e67e22;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.logout-btn {
  background-color: #c0392b;
}

/* Navbar Styles */
/* .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    color: white;
    top: 0;
    z-index: 100;
} */

/* .logo a {
    font-size: 2rem;
    font-weight: bold;
    color: bisque;
    text-decoration: none;
}

.nav-links a {
    margin: 0 1rem;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e67e22;
} */

/* Animated Nutrition Bars */
.nutrition-bar-container {
  margin: 0.5rem 0;
  padding: 0.5rem 0;
}

.nutrition-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.nutrition-bar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.nutrition-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease-out;
  position: relative;
  overflow: hidden;
  animation: fillBar 1.5s ease-out forwards;
}

.nutrition-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* Different colors for different nutrients */
.nutrition-bar-calories { background: #ff6b6b; animation-delay: 0.1s; }
.nutrition-bar-protein { background: #4ecdc4; animation-delay: 0.2s; }
.nutrition-bar-carbs { background: #45b7d1; animation-delay: 0.3s; }
.nutrition-bar-fats { background: #f9ca24; animation-delay: 0.4s; }
.nutrition-bar-fiber { background: #6c5ce7; animation-delay: 0.5s; }
.nutrition-bar-sugar { background: #fd79a8; animation-delay: 0.6s; }
.nutrition-bar-trans-fat { background: #e74c3c; animation-delay: 0.7s; }
.nutrition-bar-sodium { background: #f39c12; animation-delay: 0.8s; }

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fillBar {
  from { width: 0%; }
  to { width: var(--target-width); }
}

/* Hidden scrollbar for modal while keeping scroll functionality */
.modal-content::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Mobile-only: simplify modal & nutrition bars for small screens
   - Stop animated fills and shimmer (can be flaky on mobile)
   - Ensure macronutrients and research text are visible and scrollable
*/
@media (max-width: 768px) {
  .modal-backdrop {
    align-items: flex-end; /* bottom sheet behaviour */
    background: rgba(0,0,0,0.45);
    padding: 0;
  }

  .modal-content {
    width: 100vw !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 92vh !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  /* Hide the animated tracks on mobile and show textual macros instead */
  .nutrition-bar-track { display: none !important; }
  .nutrition-bar-fill { display: none !important; }
  .nutrition-bar-fill::after { display: none !important; }

  /* Ensure the label/value row remains visible and readable */
  .nutrition-bar-label { display: flex; justify-content: space-between; font-size: 0.95rem; gap: 0.4rem; }
  .nutrition-bar-label span:last-child { color: #fff; font-weight: 700; }

  /* Ensure label/readout is clear and wraps cleanly */
  .nutrition-bar-label { font-size: 0.95rem; gap: 0.4rem; }

  /* Make the macronutrient summary visible and legible */
  .meal-item-macros { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.95rem; }
  .meal-item-macros span { background: rgba(255,255,255,0.04); padding: 0.35rem 0.6rem; border-radius: 8px; }

  /* Research / GI disclaimer: keep readable and vertically stacked */
  .gi-methodology-disclaimer {
    font-size: 0.95rem !important;
    padding: 0.85rem !important;
    margin-top: 1rem !important;
  }
}

/* For Firefox */
.modal-content {
  scrollbar-width: none;
}

/* For IE and Edge */
.modal-content {
  -ms-overflow-style: none;
}

/* Enhanced Filter Select Styles */
.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid #dba564;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  color: #333;
  min-width: 120px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: 
    linear-gradient(45deg, transparent 50%, #dba564 50%),
    linear-gradient(135deg, #dba564 50%, transparent 50%);
  background-position: 
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px);
  background-size: 
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.filter-select:hover {
  border-color: #f4c430;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 16px rgba(244, 196, 48, 0.2);
  transform: translateY(-2px);
  background-image: 
    linear-gradient(45deg, transparent 50%, #f4c430 50%),
    linear-gradient(135deg, #f4c430 50%, transparent 50%);
}

.filter-select:focus {
  border-color: #f4c430;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.3), 0 4px 16px rgba(244, 196, 48, 0.2);
  transform: translateY(-2px);
}

.filter-select:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(244, 196, 48, 0.3);
}

.filter-select option {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  color: #333;
  font-weight: 500;
}

.filter-select option:hover,
.filter-select option:checked {
  background: rgba(244, 196, 48, 0.2);
  color: #2c5530;
}

.clear-filters-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  position: relative;
  overflow: hidden;
}

.clear-filters-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.clear-filters-btn:hover {
  background: linear-gradient(135deg, #ff5252, #e53e3e);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
  transform: translateY(-2px);
}

.clear-filters-btn:hover::before {
  left: 100%;
}

.clear-filters-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* GI Methodology Disclaimer Styles */
.gi-methodology-disclaimer {
  animation: slideInDisclaimer 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.gi-methodology-disclaimer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), rgba(245, 245, 245, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes slideInDisclaimer {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.gi-methodology-disclaimer:hover {
  background-color: #3d2766 !important;
  transition: background-color 0.3s ease;
}

