/* CSS Reset & Variables */
:root {
  /* Primary colors */
  --primary-pink: #ff00de;
  --primary-cyan: #00fff7;
  --primary-purple: #8b5fbf;
  
  /* Background colors */
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  --bg-card: rgba(255, 255, 255, 0.07);
  --bg-hover: rgba(255, 255, 255, 0.12);
  
  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 250ms ease-out;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow-pink: 0 0 20px rgba(255, 0, 222, 0.4);
  --shadow-glow-cyan: 0 0 20px rgba(0, 255, 247, 0.4);
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container with max-width for better readability */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  min-height: 100vh;
}

/* Header optimization */
header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-cyan) 100%);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
  background-size: 50px 50px;
  animation: sparkle 20s linear infinite;
  pointer-events: none;
}

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

/* Tab navigation - cleaner design */
.tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-sm);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex: 1;
  min-width: 100px;
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-cyan) 100%);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow-pink);
}

/* Optimized drink grid with GPU acceleration */
.drink-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg); /* Öka från spacing-md till spacing-lg för mer luft */
  padding: var(--spacing-lg) 0;
  will-change: transform;
}

/* Drink cards - cleaner, faster */
.drink-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0); /* GPU acceleration */
  border: 2px solid transparent;
  
  /* Full width in single column */
  width: 100%;
  max-width: 800px; /* Begränsa bredden för bättre läsbarhet */
  margin: 0 auto; /* Centrera */
  
  /* Horizontal layout for drink content */
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  
  /* Lägg till lite extra margin för mer luft */
  margin-bottom: var(--spacing-sm);
}

.drink-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-cyan);
}

/* Drink image on the left */
.drink-image-container {
  width: 60px;
  height: 60px;
  min-width: 60px; /* Prevent shrinking */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-cyan) 100%);
  box-shadow: var(--shadow-md);
}

/* Drink content in the middle */
.drink-content {
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.drink-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--text-primary);
}

.drink-meta {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.drink-category {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.profile-badge {
  font-size: 0.9rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.drink-ingredients {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Drink actions on the right */
.drink-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-left: auto;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary-cyan);
  color: var(--primary-cyan);
}

.favorite-btn.active {
  background: var(--primary-pink);
  color: white;
  border-color: var(--primary-pink);
}

/* Simplify animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.drink-image-container {
  animation: float 3s ease-in-out infinite;
  animation-play-state: paused;
}

.drink-card:hover .drink-image-container {
  animation-play-state: running;
}

/* Button styles - consistent design */
.btn {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-cyan) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-pink);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--primary-cyan);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  box-shadow: var(--shadow-glow-cyan);
}

/* Form inputs - cleaner design */
input, select, textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--bg-darker);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 247, 0.1);
}

/* Modal optimizations */
.modal, .recipe-modal, .share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.show, .recipe-modal.show, .share-modal.show {
  opacity: 1;
  visibility: visible;
}

/* Reduce animation complexity */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .drink-card {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md);
  }
  
  .drink-image-container {
    margin-bottom: var(--spacing-md);
  }
  
  .drink-actions {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-md);
  }
  
  .btn-primary {
    flex: 1;
  }
}

/* Loading skeleton for better perceived performance */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-card) 25%, 
    var(--bg-hover) 50%, 
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tema-styling */
body.theme-active {
  transition: background 0.5s ease;
}

.theme-tropical {
  --theme-bg: linear-gradient(135deg, #134e5e 0%, #71b280 50%, #2c5364 100%);
}

.theme-retro {
  --theme-bg: linear-gradient(135deg, #2d1b69 0%, #8b5fbf 50%, #0f2027 100%);
}

.theme-spooky {
  --theme-bg: linear-gradient(135deg, #0c0c0c 0%, #2c1810 50%, #1a1a2e 100%);
}

.theme-summer {
  --theme-bg: linear-gradient(135deg, #134e5e 0%, #71b280 50%, #40c057 100%);
}

.theme-winter {
  --theme-bg: linear-gradient(135deg, #2c3e50 0%, #4a6741 50%, #1a252f 100%);
}

/* Förbättrade drink-kort för tema */
.theme-active .drink-card {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(var(--theme-primary), 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.theme-active .drink-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--theme-primary);
  box-shadow: 0 8px 32px rgba(var(--theme-primary), 0.4);
}

/* Förbättrade knappar för tema */
.theme-active .btn {
  background: linear-gradient(90deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.theme-active .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--theme-primary), 0.5);
}

/* AI Spinner/Animation */
#ai-spinner {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s;
}
.spinner-animation {
  width: 64px;
  height: 64px;
  border: 8px solid #ffd700;
  border-top: 8px solid #ff6f61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Drink Image Animations */
@keyframes drinkFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}
.drink-image-container:hover {
  transform: scale(1.1) !important;
  transition: transform 0.3s ease;
}

#spinner-text {
  margin-top: 1.5em;
  font-size: 1.3em;
  font-weight: bold;
  color: #ff6f61;
  text-align: center;
  min-height: 2.5em;
}
@keyframes flashwarn {
  from { box-shadow: 0 0 0 0 #ff6b35; }
  to { box-shadow: 0 0 16px 8px #ff6b35; }
}
body {
  margin: 0;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: #fff;
  min-height: 100vh;
  padding-bottom: 6.5rem;
  box-sizing: border-box;
  /* Reduced text-shadow for better readability */
  text-shadow: 0 0 1px rgba(255,255,255,0.8), 0 0 3px rgba(0,255,247,0.6);
  transition: background 0.5s ease;
}

/* Theme-specific backgrounds */
body.theme-active {
  transition: background 0.5s ease;
}

body.theme-tropical {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #0f2027 100%);
}

body.theme-retro {
  background: linear-gradient(135deg, #ff00de 0%, #8b5fbf 50%, #2d1b69 100%);
}

body.theme-spooky {
  background: linear-gradient(135deg, #2d1b69 0%, #8b5fbf 50%, #000000 100%);
}

body.theme-summer {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 50%, #0f2027 100%);
}

body.theme-winter {
  background: linear-gradient(135deg, #ffe066 0%, #ffd43b 50%, #ff8c00 100%);
}
header {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 4px 24px 0 #00fff7, 0 0 32px #ff00de;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.1em;
  /* Reduced header text-shadow for better readability */
  text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 8px rgba(255,0,222,0.7);
}
.container {
  padding: 2rem 1rem 1rem 1rem;
  max-width: 1000px;
  margin: auto;
  box-sizing: border-box;
  /* Add semi-transparent background for better text readability */
  background: rgba(15, 32, 39, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(2px);
}
/* Bottom navigation tabs modern style */
/* Modern neon-glow bottom nav */
.tab-btn {
  background: rgba(20,20,40,0.95);
  border: none;
  font-size: 1.2em;
  padding: 0.7em 2.2em 0.3em 2.2em;
  border-radius: 18px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  outline: none;
  border-bottom: 3px solid transparent;
  margin: 0 1.5vw;
  box-shadow: 0 0 8px #00fff7, 0 0 16px #ff00de;
  /* Improved text-shadow for better readability */
  text-shadow: 0 0 2px rgba(255,255,255,0.8), 0 0 4px rgba(0,255,247,0.6);
}
.tab-btn span {
  font-size: 0.85em;
  font-weight: normal;
  margin-top: 0.2em;
}
.tab-btn.active, .tab-btn:focus, .tab-btn:hover {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  border-bottom: 3px solid #00fff7;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 16px #ff00de, 0 0 24px #00fff7;
}
.tabs-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  z-index: 100;
  box-shadow: 0 -2px 32px #00fff7, 0 0 32px #ff00de;
  background: rgba(20,20,40,0.98);
  width: 100vw;
  max-width: 100vw;
  min-height: 72px;
  padding: 0.5em 0 0.5em 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-content { animation: fadein 0.3s; min-height: 60vh; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .container {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }
  .drink-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem;
    gap: 0.5rem;
  }
  .drink-card img {
    width: 80px;
  }
  .tabs-bottom {
    min-height: 56px;
    padding: 0.2em 0;
  }
  .tab-btn {
    font-size: 1em;
    min-width: 60px;
    padding: 0.5em 0.7em 0.2em 0.7em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem 0.1rem 0.2rem 0.1rem;
  }
  .tabs-bottom {
    min-height: 48px;
    border-radius: 12px 12px 0 0;
  }
  .tab-btn {
    font-size: 0.95em;
    min-width: 48px;
    padding: 0.3em 0.3em 0.1em 0.3em;
  }
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid transparent;
  padding: 0.7em 1.2em;
  margin: 0.3em;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.filter button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Aktiv kategori-knapp */
.filter button.active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  font-weight: bold;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 222, 0.6), 0 0 50px rgba(0, 255, 247, 0.5); }
}

/* Specifik styling för tema-knappen - ta bort alltid-aktiv utseende */
.tab-btn[onclick*="theme"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid transparent !important;
}

.tab-btn[onclick*="theme"].active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* AI Spinner/Animation */
#ai-spinner {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s;
}
.spinner-animation {
  width: 64px;
  height: 64px;
  border: 8px solid #ffd700;
  border-top: 8px solid #ff6f61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Drink Image Animations */
@keyframes drinkFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}
.drink-image-container:hover {
  transform: scale(1.1) !important;
  transition: transform 0.3s ease;
}

#spinner-text {
  margin-top: 1.5em;
  font-size: 1.3em;
  font-weight: bold;
  color: #ff6f61;
  text-align: center;
  min-height: 2.5em;
}
@keyframes flashwarn {
  from { box-shadow: 0 0 0 0 #ff6b35; }
  to { box-shadow: 0 0 16px 8px #ff6b35; }
}
body {
  margin: 0;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: #fff;
  min-height: 100vh;
  padding-bottom: 6.5rem;
  box-sizing: border-box;
  /* Reduced text-shadow for better readability */
  text-shadow: 0 0 1px rgba(255,255,255,0.8), 0 0 3px rgba(0,255,247,0.6);
  transition: background 0.5s ease;
}

/* Theme-specific backgrounds */
body.theme-active {
  transition: background 0.5s ease;
}

body.theme-tropical {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #0f2027 100%);
}

body.theme-retro {
  background: linear-gradient(135deg, #ff00de 0%, #8b5fbf 50%, #2d1b69 100%);
}

body.theme-spooky {
  background: linear-gradient(135deg, #2d1b69 0%, #8b5fbf 50%, #000000 100%);
}

body.theme-summer {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 50%, #0f2027 100%);
}

body.theme-winter {
  background: linear-gradient(135deg, #ffe066 0%, #ffd43b 50%, #ff8c00 100%);
}
header {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 4px 24px 0 #00fff7, 0 0 32px #ff00de;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.1em;
  /* Reduced header text-shadow for better readability */
  text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 8px rgba(255,0,222,0.7);
}
.container {
  padding: 2rem 1rem 1rem 1rem;
  max-width: 1000px;
  margin: auto;
  box-sizing: border-box;
  /* Add semi-transparent background for better text readability */
  background: rgba(15, 32, 39, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(2px);
}
/* Bottom navigation tabs modern style */
/* Modern neon-glow bottom nav */
.tab-btn {
  background: rgba(20,20,40,0.95);
  border: none;
  font-size: 1.2em;
  padding: 0.7em 2.2em 0.3em 2.2em;
  border-radius: 18px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  outline: none;
  border-bottom: 3px solid transparent;
  margin: 0 1.5vw;
  box-shadow: 0 0 8px #00fff7, 0 0 16px #ff00de;
  /* Improved text-shadow for better readability */
  text-shadow: 0 0 2px rgba(255,255,255,0.8), 0 0 4px rgba(0,255,247,0.6);
}
.tab-btn span {
  font-size: 0.85em;
  font-weight: normal;
  margin-top: 0.2em;
}
.tab-btn.active, .tab-btn:focus, .tab-btn:hover {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  border-bottom: 3px solid #00fff7;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 16px #ff00de, 0 0 24px #00fff7;
}
.tabs-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  z-index: 100;
  box-shadow: 0 -2px 32px #00fff7, 0 0 32px #ff00de;
  background: rgba(20,20,40,0.98);
  width: 100vw;
  max-width: 100vw;
  min-height: 72px;
  padding: 0.5em 0 0.5em 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-content { animation: fadein 0.3s; min-height: 60vh; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .container {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }
  .drink-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem;
    gap: 0.5rem;
  }
  .drink-card img {
    width: 80px;
  }
  .tabs-bottom {
    min-height: 56px;
    padding: 0.2em 0;
  }
  .tab-btn {
    font-size: 1em;
    min-width: 60px;
    padding: 0.5em 0.7em 0.2em 0.7em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem 0.1rem 0.2rem 0.1rem;
  }
  .tabs-bottom {
    min-height: 48px;
    border-radius: 12px 12px 0 0;
  }
  .tab-btn {
    font-size: 0.95em;
    min-width: 48px;
    padding: 0.3em 0.3em 0.1em 0.3em;
  }
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid transparent;
  padding: 0.7em 1.2em;
  margin: 0.3em;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.filter button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Aktiv kategori-knapp */
.filter button.active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  font-weight: bold;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 222, 0.6), 0 0 50px rgba(0, 255, 247, 0.5); }
}

/* Specifik styling för tema-knappen - ta bort alltid-aktiv utseende */
.tab-btn[onclick*="theme"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid transparent !important;
}

.tab-btn[onclick*="theme"].active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* AI Spinner/Animation */
#ai-spinner {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s;
}
.spinner-animation {
  width: 64px;
  height: 64px;
  border: 8px solid #ffd700;
  border-top: 8px solid #ff6f61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Drink Image Animations */
@keyframes drinkFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}
.drink-image-container:hover {
  transform: scale(1.1) !important;
  transition: transform 0.3s ease;
}

#spinner-text {
  margin-top: 1.5em;
  font-size: 1.3em;
  font-weight: bold;
  color: #ff6f61;
  text-align: center;
  min-height: 2.5em;
}
@keyframes flashwarn {
  from { box-shadow: 0 0 0 0 #ff6b35; }
  to { box-shadow: 0 0 16px 8px #ff6b35; }
}
body {
  margin: 0;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: #fff;
  min-height: 100vh;
  padding-bottom: 6.5rem;
  box-sizing: border-box;
  /* Reduced text-shadow for better readability */
  text-shadow: 0 0 1px rgba(255,255,255,0.8), 0 0 3px rgba(0,255,247,0.6);
  transition: background 0.5s ease;
}

/* Theme-specific backgrounds */
body.theme-active {
  transition: background 0.5s ease;
}

body.theme-tropical {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #0f2027 100%);
}

body.theme-retro {
  background: linear-gradient(135deg, #ff00de 0%, #8b5fbf 50%, #2d1b69 100%);
}

body.theme-spooky {
  background: linear-gradient(135deg, #2d1b69 0%, #8b5fbf 50%, #000000 100%);
}

body.theme-summer {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 50%, #0f2027 100%);
}

body.theme-winter {
  background: linear-gradient(135deg, #ffe066 0%, #ffd43b 50%, #ff8c00 100%);
}
header {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 4px 24px 0 #00fff7, 0 0 32px #ff00de;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.1em;
  /* Reduced header text-shadow for better readability */
  text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 8px rgba(255,0,222,0.7);
}
.container {
  padding: 2rem 1rem 1rem 1rem;
  max-width: 1000px;
  margin: auto;
  box-sizing: border-box;
  /* Add semi-transparent background for better text readability */
  background: rgba(15, 32, 39, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(2px);
}
/* Bottom navigation tabs modern style */
/* Modern neon-glow bottom nav */
.tab-btn {
  background: rgba(20,20,40,0.95);
  border: none;
  font-size: 1.2em;
  padding: 0.7em 2.2em 0.3em 2.2em;
  border-radius: 18px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  outline: none;
  border-bottom: 3px solid transparent;
  margin: 0 1.5vw;
  box-shadow: 0 0 8px #00fff7, 0 0 16px #ff00de;
  /* Improved text-shadow for better readability */
  text-shadow: 0 0 2px rgba(255,255,255,0.8), 0 0 4px rgba(0,255,247,0.6);
}
.tab-btn span {
  font-size: 0.85em;
  font-weight: normal;
  margin-top: 0.2em;
}
.tab-btn.active, .tab-btn:focus, .tab-btn:hover {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  border-bottom: 3px solid #00fff7;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 16px #ff00de, 0 0 24px #00fff7;
}
.tabs-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  z-index: 100;
  box-shadow: 0 -2px 32px #00fff7, 0 0 32px #ff00de;
  background: rgba(20,20,40,0.98);
  width: 100vw;
  max-width: 100vw;
  min-height: 72px;
  padding: 0.5em 0 0.5em 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-content { animation: fadein 0.3s; min-height: 60vh; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .container {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }
  .drink-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem;
    gap: 0.5rem;
  }
  .drink-card img {
    width: 80px;
  }
  .tabs-bottom {
    min-height: 56px;
    padding: 0.2em 0;
  }
  .tab-btn {
    font-size: 1em;
    min-width: 60px;
    padding: 0.5em 0.7em 0.2em 0.7em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem 0.1rem 0.2rem 0.1rem;
  }
  .tabs-bottom {
    min-height: 48px;
    border-radius: 12px 12px 0 0;
  }
  .tab-btn {
    font-size: 0.95em;
    min-width: 48px;
    padding: 0.3em 0.3em 0.1em 0.3em;
  }
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid transparent;
  padding: 0.7em 1.2em;
  margin: 0.3em;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.filter button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Aktiv kategori-knapp */
.filter button.active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  font-weight: bold;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 222, 0.6), 0 0 50px rgba(0, 255, 247, 0.5); }
}

/* Specifik styling för tema-knappen - ta bort alltid-aktiv utseende */
.tab-btn[onclick*="theme"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid transparent !important;
}

.tab-btn[onclick*="theme"].active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* AI Spinner/Animation */
#ai-spinner {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s;
}
.spinner-animation {
  width: 64px;
  height: 64px;
  border: 8px solid #ffd700;
  border-top: 8px solid #ff6f61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Drink Image Animations */
@keyframes drinkFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}
.drink-image-container:hover {
  transform: scale(1.1) !important;
  transition: transform 0.3s ease;
}

#spinner-text {
  margin-top: 1.5em;
  font-size: 1.3em;
  font-weight: bold;
  color: #ff6f61;
  text-align: center;
  min-height: 2.5em;
}
@keyframes flashwarn {
  from { box-shadow: 0 0 0 0 #ff6b35; }
  to { box-shadow: 0 0 16px 8px #ff6b35; }
}
body {
  margin: 0;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: #fff;
  min-height: 100vh;
  padding-bottom: 6.5rem;
  box-sizing: border-box;
  /* Reduced text-shadow for better readability */
  text-shadow: 0 0 1px rgba(255,255,255,0.8), 0 0 3px rgba(0,255,247,0.6);
  transition: background 0.5s ease;
}

/* Theme-specific backgrounds */
body.theme-active {
  transition: background 0.5s ease;
}

body.theme-tropical {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #0f2027 100%);
}

body.theme-retro {
  background: linear-gradient(135deg, #ff00de 0%, #8b5fbf 50%, #2d1b69 100%);
}

body.theme-spooky {
  background: linear-gradient(135deg, #2d1b69 0%, #8b5fbf 50%, #000000 100%);
}

body.theme-summer {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 50%, #0f2027 100%);
}

body.theme-winter {
  background: linear-gradient(135deg, #ffe066 0%, #ffd43b 50%, #ff8c00 100%);
}
header {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 4px 24px 0 #00fff7, 0 0 32px #ff00de;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.1em;
  /* Reduced header text-shadow for better readability */
  text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 8px rgba(255,0,222,0.7);
}
.container {
  padding: 2rem 1rem 1rem 1rem;
  max-width: 1000px;
  margin: auto;
  box-sizing: border-box;
  /* Add semi-transparent background for better text readability */
  background: rgba(15, 32, 39, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(2px);
}
/* Bottom navigation tabs modern style */
/* Modern neon-glow bottom nav */
.tab-btn {
  background: rgba(20,20,40,0.95);
  border: none;
  font-size: 1.2em;
  padding: 0.7em 2.2em 0.3em 2.2em;
  border-radius: 18px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  outline: none;
  border-bottom: 3px solid transparent;
  margin: 0 1.5vw;
  box-shadow: 0 0 8px #00fff7, 0 0 16px #ff00de;
  /* Improved text-shadow for better readability */
  text-shadow: 0 0 2px rgba(255,255,255,0.8), 0 0 4px rgba(0,255,247,0.6);
}
.tab-btn span {
  font-size: 0.85em;
  font-weight: normal;
  margin-top: 0.2em;
}
.tab-btn.active, .tab-btn:focus, .tab-btn:hover {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  border-bottom: 3px solid #00fff7;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 16px #ff00de, 0 0 24px #00fff7;
}
.tabs-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  z-index: 100;
  box-shadow: 0 -2px 32px #00fff7, 0 0 32px #ff00de;
  background: rgba(20,20,40,0.98);
  width: 100vw;
  max-width: 100vw;
  min-height: 72px;
  padding: 0.5em 0 0.5em 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-content { animation: fadein 0.3s; min-height: 60vh; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .container {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }
  .drink-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem;
    gap: 0.5rem;
  }
  .drink-card img {
    width: 80px;
  }
  .tabs-bottom {
    min-height: 56px;
    padding: 0.2em 0;
  }
  .tab-btn {
    font-size: 1em;
    min-width: 60px;
    padding: 0.5em 0.7em 0.2em 0.7em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem 0.1rem 0.2rem 0.1rem;
  }
  .tabs-bottom {
    min-height: 48px;
    border-radius: 12px 12px 0 0;
  }
  .tab-btn {
    font-size: 0.95em;
    min-width: 48px;
    padding: 0.3em 0.3em 0.1em 0.3em;
  }
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid transparent;
  padding: 0.7em 1.2em;
  margin: 0.3em;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.filter button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Aktiv kategori-knapp */
.filter button.active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  font-weight: bold;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 222, 0.6), 0 0 50px rgba(0, 255, 247, 0.5); }
}

/* Specifik styling för tema-knappen - ta bort alltid-aktiv utseende */
.tab-btn[onclick*="theme"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid transparent !important;
}

.tab-btn[onclick*="theme"].active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* AI Spinner/Animation */
#ai-spinner {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s;
}
.spinner-animation {
  width: 64px;
  height: 64px;
  border: 8px solid #ffd700;
  border-top: 8px solid #ff6f61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Drink Image Animations */
@keyframes drinkFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}
.drink-image-container:hover {
  transform: scale(1.1) !important;
  transition: transform 0.3s ease;
}

#spinner-text {
  margin-top: 1.5em;
  font-size: 1.3em;
  font-weight: bold;
  color: #ff6f61;
  text-align: center;
  min-height: 2.5em;
}
@keyframes flashwarn {
  from { box-shadow: 0 0 0 0 #ff6b35; }
  to { box-shadow: 0 0 16px 8px #ff6b35; }
}
body {
  margin: 0;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: #fff;
  min-height: 100vh;
  padding-bottom: 6.5rem;
  box-sizing: border-box;
  /* Reduced text-shadow for better readability */
  text-shadow: 0 0 1px rgba(255,255,255,0.8), 0 0 3px rgba(0,255,247,0.6);
  transition: background 0.5s ease;
}

/* Theme-specific backgrounds */
body.theme-active {
  transition: background 0.5s ease;
}

body.theme-tropical {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #0f2027 100%);
}

body.theme-retro {
  background: linear-gradient(135deg, #ff00de 0%, #8b5fbf 50%, #2d1b69 100%);
}

body.theme-spooky {
  background: linear-gradient(135deg, #2d1b69 0%, #8b5fbf 50%, #000000 100%);
}

body.theme-summer {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 50%, #0f2027 100%);
}

body.theme-winter {
  background: linear-gradient(135deg, #ffe066 0%, #ffd43b 50%, #ff8c00 100%);
}
header {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 4px 24px 0 #00fff7, 0 0 32px #ff00de;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.1em;
  /* Reduced header text-shadow for better readability */
  text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 8px rgba(255,0,222,0.7);
}
.container {
  padding: 2rem 1rem 1rem 1rem;
  max-width: 1000px;
  margin: auto;
  box-sizing: border-box;
  /* Add semi-transparent background for better text readability */
  background: rgba(15, 32, 39, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(2px);
}
/* Bottom navigation tabs modern style */
/* Modern neon-glow bottom nav */
.tab-btn {
  background: rgba(20,20,40,0.95);
  border: none;
  font-size: 1.2em;
  padding: 0.7em 2.2em 0.3em 2.2em;
  border-radius: 18px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  outline: none;
  border-bottom: 3px solid transparent;
  margin: 0 1.5vw;
  box-shadow: 0 0 8px #00fff7, 0 0 16px #ff00de;
  /* Improved text-shadow for better readability */
  text-shadow: 0 0 2px rgba(255,255,255,0.8), 0 0 4px rgba(0,255,247,0.6);
}
.tab-btn span {
  font-size: 0.85em;
  font-weight: normal;
  margin-top: 0.2em;
}
.tab-btn.active, .tab-btn:focus, .tab-btn:hover {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  border-bottom: 3px solid #00fff7;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 16px #ff00de, 0 0 24px #00fff7;
}
.tabs-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  z-index: 100;
  box-shadow: 0 -2px 32px #00fff7, 0 0 32px #ff00de;
  background: rgba(20,20,40,0.98);
  width: 100vw;
  max-width: 100vw;
  min-height: 72px;
  padding: 0.5em 0 0.5em 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-content { animation: fadein 0.3s; min-height: 60vh; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .container {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }
  .drink-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem;
    gap: 0.5rem;
  }
  .drink-card img {
    width: 80px;
  }
  .tabs-bottom {
    min-height: 56px;
    padding: 0.2em 0;
  }
  .tab-btn {
    font-size: 1em;
    min-width: 60px;
    padding: 0.5em 0.7em 0.2em 0.7em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem 0.1rem 0.2rem 0.1rem;
  }
  .tabs-bottom {
    min-height: 48px;
    border-radius: 12px 12px 0 0;
  }
  .tab-btn {
    font-size: 0.95em;
    min-width: 48px;
    padding: 0.3em 0.3em 0.1em 0.3em;
  }
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid transparent;
  padding: 0.7em 1.2em;
  margin: 0.3em;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.filter button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Aktiv kategori-knapp */
.filter button.active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  font-weight: bold;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 222, 0.6), 0 0 50px rgba(0, 255, 247, 0.5); }
}

/* Specifik styling för tema-knappen - ta bort alltid-aktiv utseende */
.tab-btn[onclick*="theme"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid transparent !important;
}

.tab-btn[onclick*="theme"].active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* AI Spinner/Animation */
#ai-spinner {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s;
}
.spinner-animation {
  width: 64px;
  height: 64px;
  border: 8px solid #ffd700;
  border-top: 8px solid #ff6f61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Drink Image Animations */
@keyframes drinkFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}
.drink-image-container:hover {
  transform: scale(1.1) !important;
  transition: transform 0.3s ease;
}

#spinner-text {
  margin-top: 1.5em;
  font-size: 1.3em;
  font-weight: bold;
  color: #ff6f61;
  text-align: center;
  min-height: 2.5em;
}
@keyframes flashwarn {
  from { box-shadow: 0 0 0 0 #ff6b35; }
  to { box-shadow: 0 0 16px 8px #ff6b35; }
}
body {
  margin: 0;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: #fff;
  min-height: 100vh;
  padding-bottom: 6.5rem;
  box-sizing: border-box;
  /* Reduced text-shadow for better readability */
  text-shadow: 0 0 1px rgba(255,255,255,0.8), 0 0 3px rgba(0,255,247,0.6);
  transition: background  0.5s ease;
}

/* Theme-specific backgrounds */
body.theme-active {
  transition: background 0.5s ease;
}

body.theme-tropical {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #0f2027 100%);
}

body.theme-retro {
  background: linear-gradient(135deg, #ff00de 0%, #8b5fbf 50%, #2d1b69 100%);
}

body.theme-spooky {
  background: linear-gradient(135deg, #2d1b69 0%, #8b5fbf 50%, #000000 100%);
}

body.theme-summer {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 50%, #0f2027 100%);
}

body.theme-winter {
  background: linear-gradient(135deg, #ffe066 0%, #ffd43b 50%, #ff8c00 100%);
}
header {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  box-shadow: 0 4px 24px 0 #00fff7, 0 0 32px #ff00de;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.1em;
  /* Reduced header text-shadow for better readability */
  text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 8px rgba(255,0,222,0.7);
}
.container {
  padding: 2rem 1rem 1rem 1rem;
  max-width: 1000px;
  margin: auto;
  box-sizing: border-box;
  /* Add semi-transparent background for better text readability */
  background: rgba(15, 32, 39, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(2px);
}
/* Bottom navigation tabs modern style */
/* Modern neon-glow bottom nav */
.tab-btn {
  background: rgba(20,20,40,0.95);
  border: none;
  font-size: 1.2em;
  padding: 0.7em 2.2em 0.3em 2.2em;
  border-radius: 18px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  outline: none;
  border-bottom: 3px solid transparent;
  margin: 0 1.5vw;
  box-shadow: 0 0 8px #00fff7, 0 0 16px #ff00de;
  /* Improved text-shadow for better readability */
  text-shadow: 0 0 2px rgba(255,255,255,0.8), 0 0 4px rgba(0,255,247,0.6);
}
.tab-btn span {
  font-size: 0.85em;
  font-weight: normal;
  margin-top: 0.2em;
}
.tab-btn.active, .tab-btn:focus, .tab-btn:hover {
  background: linear-gradient(90deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  border-bottom: 3px solid #00fff7;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 16px #ff00de, 0 0 24px #00fff7;
}
.tabs-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  z-index: 100;
  box-shadow: 0 -2px 32px #00fff7, 0 0 32px #ff00de;
  background: rgba(20,20,40,0.98);
  width: 100vw;
  max-width: 100vw;
  min-height: 72px;
  padding: 0.5em 0 0.5em 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-content { animation: fadein 0.3s; min-height: 60vh; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .container {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }
  .drink-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem;
    gap: 0.5rem;
  }
  .drink-card img {
    width: 80px;
  }
  .tabs-bottom {
    min-height: 56px;
    padding: 0.2em 0;
  }
  .tab-btn {
    font-size: 1em;
    min-width: 60px;
    padding: 0.5em 0.7em 0.2em 0.7em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem 0.1rem 0.2rem 0.1rem;
  }
  .tabs-bottom {
    min-height: 48px;
    border-radius: 12px 12px 0 0;
  }
  .tab-btn {
    font-size: 0.95em;
    min-width: 48px;
    padding: 0.3em 0.3em 0.1em 0.3em;
  }
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid transparent;
  padding: 0.7em 1.2em;
  margin: 0.3em;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.filter button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Aktiv kategori-knapp */
.filter button.active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%);
  color: #fff;
  font-weight: bold;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 255, 247, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 222, 0.6), 0 0 50px rgba(0, 255, 247, 0.5); }
}

/* Specifik styling för tema-knappen - ta bort alltid-aktiv utseende */
.tab-btn[onclick*="theme"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid transparent !important;
}

.tab-btn[onclick*="theme"].active {
  background: linear-gradient(135deg, #ff00de 0%, #00fff7 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}