/* Liquid Glass Design System - Optimized with Glass Images */
/* Performance-optimized version using glass texture images */

/* Liquid Glass Container - Using glass images for better performance */
.liquid-glass {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}

.liquid-glass:hover {
  background-image: url('/glass-card-hover.png');
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.light .liquid-glass {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .liquid-glass {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Base body styles for theme switching */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Light Theme */
body.light {
  background: linear-gradient(135deg,
    #ffffff 0%,
    #f8f9fa 25%,
    #e9ecef 50%,
    #dee2e6 75%,
    #ced4da 100%);
  color: #1a1a1a;
}

/* Dark Theme */
body.dark {
  background: linear-gradient(135deg,
    #000000 0%,
    #0f0f0f 25%,
    #1a1a1a 50%,
    #262626 75%,
    #333333 100%);
  color: white;
}

/* Enhanced background with mesh gradient overlay */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  transition: background 0.5s ease;
}

.light .mesh-gradient {
  background:
    radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 101, 101, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(56, 178, 172, 0.03) 0%, transparent 50%);
}

.dark .mesh-gradient {
  background:
    radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 101, 101, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(56, 178, 172, 0.03) 0%, transparent 50%);
}


/* Theme Toggle Switch - Using Glass Images */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.light .theme-toggle {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.light .toggle-switch {
  background: rgba(0, 0, 0, 0.1);
}

.dark .toggle-switch {
  background: rgba(255, 255, 255, 0.2);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.light .toggle-slider {
  background: #1a1a1a;
  transform: translateX(0);
}

.dark .toggle-slider {
  background: white;
  transform: translateX(30px);
}

.theme-label {
  font-size: 14px;
  font-weight: 500;
}

/* Navigation - Liquid Glass with Images */
.nav-liquid {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  margin: 16px;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-image 0.4s cubic-bezier(0.23, 1, 0.320, 1), 
box-shadow 0.4s ease;
}

.light .nav-liquid {
  background-color: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark .nav-liquid {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-links-liquid {
  display: flex;
  gap: 12px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links-liquid a {
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 7px 12px;
  border-radius: 10px;
}

.light .nav-links-liquid a {
  color: rgba(26, 26, 26, 0.8);
}

.dark .nav-links-liquid a {
  color: rgba(255, 255, 255, 0.8);
}

.light .nav-links-liquid a:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

.dark .nav-links-liquid a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-links-liquid a:active,
.theme-toggle-button:active {
  transform: none !important;
  transition: none !important;
}

/* Hero Section - Liquid Glass with Images */
.hero-liquid {
  text-align: center;
  padding: 80px 20px;
  position: relative;
}

.hero-glass {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 32px;
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.hero-glass:hover {
  background-image: url('/glass-card-hover.png');
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

.light .hero-glass {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.dark .hero-glass {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.7;
}

/* Accent text styling for brand colors */
.hero .text-accent {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Text color utilities for theme-based text */
.text-accent {
  color: inherit;
  font-weight: 600;
}

.text-secondary {
  opacity: 0.8;
  color: inherit;
}
.text-muted {
  opacity: 0.6;
  color: inherit;
}
.text-faded {
  opacity: 0.5;
  color: inherit;
}

/* Background utilities for theme-aware backgrounds */
.bg-secondary {
  background: rgba(0, 0, 0, 0.05);
}
.dark .bg-secondary {
  background: rgba(255, 255, 255, 0.1);
}

/* Liquid Buttons - Using glass images */
.liquid-button {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.light .liquid-button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark .liquid-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


.liquid-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.liquid-button:hover::before {
  left: 100%;
}

.liquid-button:hover {
  background-image: url('/glass-card-hover.png');
  transform: translateY(-4px);
}

.light .liquid-button:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .liquid-button:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Liquid Button Active State - Removed to match homepage style */

/* Liquid Button for Dark Background - Using Glass Images */
.liquid-button-on-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
}

.liquid-button-on-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.liquid-button-on-bg:hover::before {
  left: 100%;
}

.light .liquid-button-on-bg {
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark .liquid-button-on-bg {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.liquid-button-on-bg:hover {
  background-image: url('/glass-card-hover.png');
  transform: translateY(-4px);
}

.light .liquid-button-on-bg:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .liquid-button-on-bg:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Cards - Liquid Glass with Images */
.liquid-card {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.liquid-card:hover {
  background-image: url('/glass-card-hover.png');
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.light .liquid-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .liquid-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Sidebar - Liquid Glass with Images */
.liquid-glass-sidebar {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 28px 28px 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.light .liquid-glass-sidebar {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: none;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .liquid-glass-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Mobile Sidebar - Liquid Glass with Images */
.liquid-glass-mobile-sidebar {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px 28px 0 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.light .liquid-glass-mobile-sidebar {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: none;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .liquid-glass-mobile-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}


.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.liquid-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.liquid-card p {
  line-height: 1.6;
  font-size: 15px;
  opacity: 0.7;
}

/* Stats - Liquid Glass with Images */
.stats-liquid {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 32px;
  margin: 60px 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  transition: all 0.3s ease;
}

.light .stats-liquid {
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .stats-liquid {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-liquid {
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}

.stat-liquid:hover {
  background-image: url('/glass-card-hover.png');
  transform: translateY(-2px);
}

.light .stat-liquid {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .stat-liquid {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}



.stat-label {
  font-size: 1rem;
  opacity: 0.6;
}

/* Footer - Liquid Glass with Images */
.footer-liquid {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 32px 20px;
  text-align: center;
  margin-top: 60px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.light .footer-liquid {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .footer-liquid {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* AI Recommendation Banner - Using Glass Images */
.ai-banner-wide {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  margin: 12px 10px;
  padding: 24px 20px;
  width: calc(100% - 20px);
  max-width: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.ai-banner-wide:hover {
  background-image: url('/glass-card-hover.png');
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

.light .ai-banner-wide {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .ai-banner-wide {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


/* Mobile responsiveness for AI banner */
@media (max-width: 768px) {
  .ai-banner-wide {
    margin: 40px 20px;
    padding: 30px 20px;
    width: calc(100% - 40px);
    border-radius: 24px;
  }
}

/* Small Liquid Button - Using Glass Images */
.liquid-button-small {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.light .liquid-button-small {
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark .liquid-button-small {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.liquid-button-small::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.liquid-button-small:hover::before {
  left: 100%;
}

.liquid-button-small:hover {
  background-image: url('/glass-card-hover.png');
  transform: translateY(-2px);
}

.light .liquid-button-small:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .liquid-button-small:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Liquid Glass Category Tag - Using Glass Images */
.liquid-tag {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border: 1px solid;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.light .liquid-tag {
  border-color: rgba(255, 255, 255, 0.3);
  color: #1a1a1a;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .liquid-tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.liquid-tag:hover {
  background-image: url('/glass-card-hover.png');
  transform: translateY(-1px);
}

.light .liquid-tag:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dark .liquid-tag:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
  .ai-banner-wide {
    margin: 30px 20px;
    padding: 25px 15px;
    width: calc(100% - 40px);
    border-radius: 20px;
  }
}

/* Theme Toggle Style Buttons - Using Glass Images */
.theme-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-image 0.4s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.4s ease, color 0.4s ease;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
}

.theme-toggle-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.theme-toggle-button:hover::before {
  left: 100%;
}

.light .theme-toggle-button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark .theme-toggle-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.theme-toggle-button:hover {
  background-image: url('/glass-card-hover.png');
  transform: translateY(-4px);
}

.light .theme-toggle-button:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .theme-toggle-button:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Mobile Navigation Links - Using Glass Images */
.nav-link-liquid-mobile {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 10px 16px;
  border-radius: 12px;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.light .nav-link-liquid-mobile {
  color: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .nav-link-liquid-mobile {
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.light .nav-link-liquid-mobile:hover {
  color: #1a1a1a;
  background-image: url('/glass-card-hover.png');
  border: 1px solid rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.dark .nav-link-liquid-mobile:hover {
  color: white;
  background-image: url('/glass-card-hover.png');
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Search Input Styling - Liquid Glass */
.search-input {
  color: inherit;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.light .search-input {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1f2937;
}

.dark .search-input {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f9fafb;
}

.search-input:focus {
  border-color: rgba(47, 106, 80, 0.5);
  outline: none;
  box-shadow: 0 0 0 2px rgba(47, 106, 80, 0.15);
}

.light .search-input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(47, 106, 80, 0.5);
}

.dark .search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(47, 106, 80, 0.4);
}

/* Global Dark Mode Input Styling */
.dark input,
.dark textarea,
.dark select {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f9fafb !important;
}

.dark input::-moz-placeholder, .dark textarea::-moz-placeholder {
  color: rgba(156, 163, 175, 0.8) !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: rgba(156, 163, 175, 0.8) !important;
}

/* Global Light Mode Input Styling - Transparent */
.light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
.light textarea,
.light select {
  background-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1f2937 !important;
}

.light input::-moz-placeholder, .light textarea::-moz-placeholder {
  color: rgba(107, 114, 128, 0.7) !important;
}

.light input::placeholder,
.light textarea::placeholder {
  color: rgba(107, 114, 128, 0.7) !important;
}

/* Sort Button Specific Styling - Liquid Glass */
.sort-button-liquid {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.light .sort-button-liquid {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #333;
}

.dark .sort-button-liquid {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
}

.sort-button-liquid:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  border-color: rgba(47, 106, 80, 0.4);
}

.light .sort-button-liquid:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dark .sort-button-liquid:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Select dropdown options styling */
.sort-button-liquid option {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 8px 12px;
  border: none;
}

.dark .sort-button-liquid option {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border: none;
}

/* Fix for all select dropdowns in the app - Using Glass Images */
select {
  color: #1f2937 !important; /* Dark text for light mode */
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50px !important; /* Circular styling to match search */
  padding: 8px 20px !important;
}

.dark select {
  color: #f9fafb !important; /* Light text for dark mode */
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50px !important; /* Circular styling to match search */
  padding: 8px 20px !important;
}

/* Focus states for select dropdowns */
select:focus {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.dark select:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Select options styling - works on most browsers */
select option {
  background: white !important;
  color: #1f2937 !important;
  padding: 8px 12px !important;
}

.dark select option {
  background: #1f2937 !important;
  color: #f9fafb !important;
  padding: 8px 12px !important;
}

/* Alternative styling for WebKit browsers */
select::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

/* Dropdown arrow styling */
select::-ms-expand {
  display: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.dark select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f9fafb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Sort Dropdown Menu - Using Glass Images */
.sort-dropdown-liquid {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  padding: 8px;
  position: absolute;
  overflow: hidden;
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.light .sort-dropdown-liquid {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .sort-dropdown-liquid {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sort-dropdown-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.sort-dropdown-item:last-child {
  margin-bottom: 0;
}

.light .sort-dropdown-item {
  color: #333;
}

.dark .sort-dropdown-item {
  color: white;
}

.light .sort-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dark .sort-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sort-dropdown-item.active {
  background: #2a2de2;
  color: white;
}

/* Notification Dropdown - Premium Glass Styling - Using Glass Images */
.notification-dropdown-liquid {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 0;
  position: fixed !important;
  overflow: hidden;
  border: none;
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 999999999 !important;
  transform-origin: top right;
  animation: notificationDropdownIn 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  transition: all 0.3s ease;
  max-width: 400px;
  width: 100%;
}

.light .notification-dropdown-liquid {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.dark .notification-dropdown-liquid {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Notification Dropdown Backdrop - Using Glass Images */
.notification-dropdown-backdrop {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999998 !important;
  background: rgba(0, 0, 0, 0.1);
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Notification Dropdown Header - Premium Glass - Using Glass Images */
.notification-dropdown-header {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Header text colors */
.notification-dropdown-header h3 {
  color: white !important;
}

.notification-dropdown-header p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.notification-dropdown-header button {
  color: white !important;
}

.notification-dropdown-header span {
  color: white !important;
}

/* Fix bell icon container transparency in light mode */
.light .notification-dropdown-header .bg-white\/10 {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.dark .notification-dropdown-header .bg-white\/10 {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Fix bell icon container in header - Using Glass Images */
.light .notification-dropdown-header .bg-white\/10,
.light .notification-dropdown-header div[class*="bg-white\/10"] {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.dark .notification-dropdown-header .bg-white\/10,
.dark .notification-dropdown-header div[class*="bg-white\/10"] {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Fix empty state bell icon container - Using Glass Images */
.light .notification-dropdown-content .bg-white\/10,
.light .notification-dropdown-content div[class*="bg-white\/10"] {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.dark .notification-dropdown-content .bg-white\/10,
.dark .notification-dropdown-content div[class*="bg-white\/10"] {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Fix buttons in header - Using Glass Images */
.light .notification-dropdown-header button,
.light .notification-dropdown-header .theme-toggle-button {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.dark .notification-dropdown-header button,
.dark .notification-dropdown-header .theme-toggle-button {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Fix notification item icon containers - Using Glass Images */
.light .notification-dropdown-item .bg-white\/8,
.light .notification-dropdown-item div[class*="bg-white\/8"] {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.dark .notification-dropdown-item .bg-white\/8,
.dark .notification-dropdown-item div[class*="bg-white\/8"] {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}


.light .notification-dropdown-header {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dark .notification-dropdown-header {
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Notification Dropdown Content */
.notification-dropdown-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 0;
}

/* Empty state text colors */
.notification-dropdown-content .text-center p {
  color: #1a1a1a !important;
}

.dark .notification-dropdown-content .text-center p {
  color: white !important;
}

.notification-dropdown-content .text-center .font-bold {
  color: #1a1a1a !important;
}

.dark .notification-dropdown-content .text-center .font-bold {
  color: white !important;
}

.notification-dropdown-content .text-center .text-lg {
  color: #1a1a1a !important;
}

.dark .notification-dropdown-content .text-center .text-lg {
  color: white !important;
}

.notification-dropdown-content .text-center .text-sm {
  color: rgba(26, 26, 26, 0.7) !important;
}

.dark .notification-dropdown-content .text-center .text-sm {
  color: rgba(255, 255, 255, 0.7) !important;
}

.notification-dropdown-content .text-center .text-white\/50 {
  color: rgba(26, 26, 26, 0.5) !important;
}

.dark .notification-dropdown-content .text-center .text-white\/50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.notification-dropdown-content .text-center .text-white\/60 {
  color: rgba(26, 26, 26, 0.6) !important;
}

.dark .notification-dropdown-content .text-center .text-white\/60 {
  color: rgba(255, 255, 255, 0.6) !important;
}

.notification-dropdown-content .text-center .text-white\/70 {
  color: rgba(26, 26, 26, 0.7) !important;
}

.dark .notification-dropdown-content .text-center .text-white\/70 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Notification Dropdown Item - Premium Glass - Using Glass Images */
.notification-dropdown-item {
  padding: 20px;
  border-bottom: 1px solid;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Notification item text colors */
.notification-dropdown-item h4 {
  color: #1a1a1a !important;
}

.dark .notification-dropdown-item h4 {
  color: white !important;
}

.notification-dropdown-item p {
  color: rgba(26, 26, 26, 0.8) !important;
}

.dark .notification-dropdown-item p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.notification-dropdown-item span {
  color: #1a1a1a !important;
}

.dark .notification-dropdown-item span {
  color: white !important;
}

.notification-dropdown-item div {
  color: #1a1a1a !important;
}

.dark .notification-dropdown-item div {
  color: white !important;
}

.light .notification-dropdown-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dark .notification-dropdown-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.light .notification-dropdown-item:hover {
  background-image: url('/glass-card-hover.png');
  border-bottom-color: rgba(47, 106, 80, 0.25);
  transform: translateX(4px);
}

.dark .notification-dropdown-item:hover {
  background-image: url('/glass-card-hover.png');
  border-bottom-color: rgba(47, 106, 80, 0.25);
  transform: translateX(4px);
}

.notification-dropdown-item:last-child {
  border-bottom: none;
}

/* Notification Dropdown Footer - Premium Glass - Using Glass Images */
.notification-dropdown-footer {
  padding: 20px;
  border-top: 1px solid;
  position: relative;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Footer button text colors */
.notification-dropdown-footer a {
  color: #1a1a1a !important;
}

.dark .notification-dropdown-footer a {
  color: white !important;
}

.notification-dropdown-footer .block {
  color: #1a1a1a !important;
}

.dark .notification-dropdown-footer .block {
  color: white !important;
}

/* Comprehensive text color fix for notification dropdown */
.notification-dropdown-liquid * {
  transition: color 0.3s ease;
}

/* Light mode text colors - Keep same design, fix text only */
.light .notification-dropdown-liquid {
  color: #1a1a1a !important;
}

.light .notification-dropdown-liquid h1,
.light .notification-dropdown-liquid h2,
.light .notification-dropdown-liquid h3,
.light .notification-dropdown-liquid h4,
.light .notification-dropdown-liquid h5,
.light .notification-dropdown-liquid h6 {
  color: #1a1a1a !important;
}

.light .notification-dropdown-liquid p,
.light .notification-dropdown-liquid span,
.light .notification-dropdown-liquid div {
  color: #1a1a1a !important;
}

.light .notification-dropdown-liquid .text-white {
  color: #1a1a1a !important;
}

.light .notification-dropdown-liquid .text-white\/50 {
  color: rgba(26, 26, 26, 0.5) !important;
}

.light .notification-dropdown-liquid .text-white\/60 {
  color: rgba(26, 26, 26, 0.6) !important;
}

.light .notification-dropdown-liquid .text-white\/70 {
  color: rgba(26, 26, 26, 0.7) !important;
}

.light .notification-dropdown-liquid .text-white\/80 {
  color: rgba(26, 26, 26, 0.8) !important;
}

.light .notification-dropdown-liquid .text-white\/90 {
  color: rgba(26, 26, 26, 0.9) !important;
}

/* Dark mode text colors - Keep exactly as is */
.dark .notification-dropdown-liquid {
  color: white !important;
}

.dark .notification-dropdown-liquid h1,
.dark .notification-dropdown-liquid h2,
.dark .notification-dropdown-liquid h3,
.dark .notification-dropdown-liquid h4,
.dark .notification-dropdown-liquid h5,
.dark .notification-dropdown-liquid h6 {
  color: white !important;
}

.dark .notification-dropdown-liquid p,
.dark .notification-dropdown-liquid span,
.dark .notification-dropdown-liquid div {
  color: white !important;
}

/* Bell icon colors for header */
.notification-dropdown-header .h-6 {
  color: white !important;
}

.light .notification-dropdown-header .h-6 {
  color: rgba(255, 255, 255, 0.7) !important; /* Transparent white for light mode */
}

.dark .notification-dropdown-header .h-6 {
  color: white !important;
}

/* New notification bell icon styling */
.notification-bell-icon {
  color: white !important;
}

.light .notification-bell-icon {
  color: rgba(255, 255, 255, 0.7) !important; /* Transparent white for light mode */
}

.dark .notification-bell-icon {
  color: white !important;
}

/* Notification header text styling */
.notification-header-title {
  color: white !important;
}

.light .notification-header-title {
  color: #1a1a1a !important;
}

.dark .notification-header-title {
  color: white !important;
}

.notification-header-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

.light .notification-header-subtitle {
  color: rgba(26, 26, 26, 0.8) !important;
}

.dark .notification-header-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Notification bell icon container - Using Glass Images */
.notification-bell-icon-container {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.light .notification-bell-icon-container {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.dark .notification-bell-icon-container {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Notification push button - Using Glass Images */
.notification-push-button {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.light .notification-push-button {
  color: #1a1a1a !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.dark .notification-push-button {
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Notification close button - Using Glass Images */
.notification-close-button {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.light .notification-close-button {
  color: rgba(26, 26, 26, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.dark .notification-close-button {
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.notification-close-button:hover {
  color: white !important;
}

.light .notification-close-button:hover {
  color: #1a1a1a !important;
}

.dark .notification-close-button:hover {
  color: white !important;
}

/* Empty state styling */
.notification-empty-state {
  color: rgba(255, 255, 255, 0.7) !important;
}

.light .notification-empty-state {
  color: rgba(26, 26, 26, 0.7) !important;
}

.dark .notification-empty-state {
  color: rgba(255, 255, 255, 0.7) !important;
}

.notification-empty-bell {
  color: #2F6A50 !important;
}

.light .notification-empty-bell {
  color: rgba(255, 255, 255, 0.7) !important; /* Transparent white for light mode */
}

.dark .notification-empty-bell {
  color: rgba(255, 255, 255, 0.7) !important;
}

.notification-empty-title {
  color: white !important;
}

.light .notification-empty-title {
  color: #1a1a1a !important;
}

.dark .notification-empty-title {
  color: white !important;
}

.notification-empty-subtitle {
  color: rgba(255, 255, 255, 0.6) !important;
}

.light .notification-empty-subtitle {
  color: rgba(26, 26, 26, 0.6) !important;
}

.dark .notification-empty-subtitle {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Notification Page Icons */
.notification-page-icon {
  color: #2F6A50 !important;
}

.light .notification-page-icon {
  color: rgba(255, 255, 255, 0.7) !important; /* Transparent white for light mode */
}

.dark .notification-page-icon {
  color: #2F6A50 !important;
}

.notification-page-icon-rejected {
  color: #dc2626 !important;
}

.light .notification-page-icon-rejected {
  color: rgba(220, 38, 38, 0.7) !important; /* Transparent red for light mode */
}

.dark .notification-page-icon-rejected {
  color: #dc2626 !important;
}

.notification-page-icon-flagged {
  color: #f59e0b !important;
}

.light .notification-page-icon-flagged {
  color: rgba(245, 158, 11, 0.7) !important; /* Transparent amber for light mode */
}

.dark .notification-page-icon-flagged {
  color: #f59e0b !important;
}

.notification-page-icon-moderation {
  color: #7c3aed !important;
}

.light .notification-page-icon-moderation {
  color: rgba(124, 58, 237, 0.7) !important; /* Transparent purple for light mode */
}

.dark .notification-page-icon-moderation {
  color: #7c3aed !important;
}

.notification-page-icon-ai {
  color: #3b82f6 !important;
}

.light .notification-page-icon-ai {
  color: rgba(59, 130, 246, 0.7) !important; /* Transparent blue for light mode */
}

.dark .notification-page-icon-ai {
  color: #3b82f6 !important;
}

.notification-page-header-icon {
  color: #2F6A50 !important;
}

.light .notification-page-header-icon {
  color: #374151 !important; /* Dark gray for light mode */
}

.dark .notification-page-header-icon {
  color: rgba(255, 255, 255, 0.8) !important; /* White for dark mode */
}

/* More specific rule for the bell icon in NotificationsPage header */
.liquid-card .notification-page-header-icon {
  color: #2F6A50 !important;
}

.light .liquid-card .notification-page-header-icon {
  color: #374151 !important; /* Dark gray for light mode */
}

.dark .liquid-card .notification-page-header-icon {
  color: rgba(255, 255, 255, 0.8) !important; /* White for dark mode */
}

/* Even more specific rule for the bell icon in NotificationsPage header */
.liquid-card .p-4 .notification-page-header-icon {
  color: #2F6A50 !important;
}

.light .liquid-card .p-4 .notification-page-header-icon {
  color: #374151 !important; /* Dark gray for light mode */
}

.dark .liquid-card .p-4 .notification-page-header-icon {
  color: rgba(255, 255, 255, 0.8) !important; /* White for dark mode */
}

/* Most specific rule for the bell icon in NotificationsPage header */
.liquid-card .p-4 .h-8.w-8.notification-page-header-icon {
  color: #2F6A50 !important;
}

.light .liquid-card .p-4 .h-8.w-8.notification-page-header-icon {
  color: #374151 !important; /* Dark gray for light mode */
}

.dark .liquid-card .p-4 .h-8.w-8.notification-page-header-icon {
  color: rgba(255, 255, 255, 0.8) !important; /* White for dark mode */
}

.notification-page-empty-icon {
  color: #2F6A50 !important;
}

.light .notification-page-empty-icon {
  color: #374151 !important; /* Dark gray for light mode - matching header icon */
}

.dark .notification-page-empty-icon {
  color: rgba(255, 255, 255, 0.7) !important;
}

.notification-page-sender-icon {
  color: #2F6A50 !important;
}

.light .notification-page-sender-icon {
  color: rgba(255, 255, 255, 0.7) !important; /* Transparent white for light mode */
}

.dark .notification-page-sender-icon {
  color: #2F6A50 !important;
}

/* Notification page icon containers - Using Glass Images */
.notification-page-header-icon-container {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.light .notification-page-header-icon-container {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.dark .notification-page-header-icon-container {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.notification-page-empty-icon-container {
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.light .notification-page-empty-icon-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.dark .notification-page-empty-icon-container {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Bell icon in empty state */
.notification-dropdown-content .h-16 {
  color: #2F6A50 !important;
}

.light .notification-dropdown-content .h-16 {
  color: rgba(255, 255, 255, 0.7) !important; /* Transparent white for light mode */
}

.dark .notification-dropdown-content .h-16 {
  color: rgba(255, 255, 255, 0.7) !important;
}


.light .notification-dropdown-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dark .notification-dropdown-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Premium Animation */
@keyframes notificationDropdownIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-20px) rotateX(-10deg);
    filter: blur(4px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02) translateY(-5px) rotateX(-2deg);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
    filter: blur(0px);
  }
}

@keyframes notificationDropdownOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: scale(0.9) translateY(-20px) rotateX(-10deg);
    filter: blur(4px);
  }
}

/* Notification Bell Container - Ultra High Z-Index */
.notification-bell-container {
  position: relative;
  z-index: 999999999;
}

.notification-bell-container.active {
  z-index: 999999999 !important;
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform;
}

/* Special notification bell override for maximum layering */
.notification-bell-container.active .notification-dropdown-liquid {
  z-index: 9999999 !important;
  position: fixed !important;
  transform: translateZ(0) !important;
  isolation: isolate !important;
  will-change: transform !important;
}

/* Notification bell button specific styling */
.notification-bell-button {
  position: relative;
  z-index: 999999998;
  isolation: isolate;
}

.notification-bell-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(47, 106, 80, 0.3);
}

/* Notification Portal - Absolutely Highest Z-Index */
#notification-portal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 9999999999 !important;
}

#notification-portal > * {
  pointer-events: auto !important;
}

/* Alternative Solution: Use position: fixed with high z-index and isolation - Using Glass Images */
.notification-dropdown-fixed {
  position: fixed !important;
  z-index: 999999999 !important;
  isolation: isolate !important;
  transform: translateZ(0) !important;
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Fallback: CSS with !important override - Using Glass Images */
.notification-dropdown-override {
  position: fixed !important;
  z-index: 999999999 !important;
  isolation: isolate !important;
  transform: translateZ(0) !important;
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25) !important;
}

/* Force notification dropdown above all other elements */
.notification-dropdown-liquid {
  isolation: isolate;
  transform: translateZ(0);
}

/* Ensure all child elements are properly layered */
.notification-dropdown-liquid > * {
  position: relative;
  z-index: inherit;
}

/* NEW: Ultimate notification dropdown z-index fix */
.notification-bell-container {
  /* Create a new stacking context at the container level */
  position: relative !important;
  z-index: 999999 !important;
}

.notification-bell-container.active {
  z-index: 999999999 !important;
}

/* Create a dedicated container for the dropdown - Using Glass Images */
.notification-dropdown-outer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 999999999 !important;
  isolation: isolate !important;
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.notification-dropdown-outer .notification-dropdown-liquid {
  pointer-events: auto !important;
  position: absolute !important;
  /* Position will be set via inline styles */
  transform: translateZ(0) !important;
  will-change: transform !important;
}

/* Alternative approach - elevate the entire notification bell - Using Glass Images */
.notification-elevated {
  position: relative !important;
  z-index: 999999999 !important;
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.notification-elevated .notification-dropdown-liquid {
  position: fixed !important;
  z-index: 999999999 !important;
  transform: translate3d(0, 0, 0) !important;
  backface-visibility: hidden !important;
  perspective: 1000px !important;
}

/* CRITICAL: Force maximum z-index for notification dropdown - Using Glass Images */
.notification-dropdown-liquid {
  z-index: 2147483647 !important; /* Maximum 32-bit integer */
  position: fixed !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  will-change: transform, z-index !important;
  background-image: url('/glass-card.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Force all parents to not clip the dropdown */
.notification-bell-container,
.notification-bell-wrapper,
.notification-elevated {
  overflow: visible !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

/* Ensure dropdown is above everything */
@media screen {
  .notification-dropdown-liquid {
    z-index: 2147483647 !important;
  }
}

/* Override accent color for unread notification ring */
.ring-accent\/20 {
  --tw-ring-color: rgb(156 163 175 / 0.2) !important; /* Gray-500 with 20% opacity */
}

.dark .ring-accent\/20 {
  --tw-ring-color: rgb(209 213 219 / 0.2) !important; /* Gray-300 with 20% opacity for dark mode */
}

/* Ensure text inheritance in detail pages */
main {
  color: inherit;
}

main h1, main h2, main h3, main h4, main h5, main h6,
main p, main span, main div, main li, main a {
  color: inherit;
}

/* Ensure all containers in detail pages inherit text color */
main .container,
main .grid,
main .flex,
main .md\\:col-span-1,
main .md\\:col-span-2,
main .prose {
  color: inherit;
}

/* Ensure all text elements in these containers inherit color */
main .container *,
main .grid *,
main .flex *,
main .md\\:col-span-1 *,
main .md\\:col-span-2 *,
main .prose * {
  color: inherit;
}
/* Article content specific styling */
.prose {
  color: inherit;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: inherit;
}
.prose p,
.prose ul,
.prose ol,
.prose li,
.prose blockquote {
  color: inherit;
}
.prose strong,
.prose b {
  color: inherit;
}
.prose a {
  color: #2a2de2;
}
.dark .prose a {
  color: #4a7fff;
}
.prose a:hover {
  color: #1a1bc2;
}
.dark .prose a:hover {
  color: #6b9aff;
}
.prose code {
  color: inherit;
  background: rgba(0, 0, 0, 0.1);
}
.dark .prose code {
  background: rgba(255, 255, 255, 0.1);
}
.prose pre {
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
}
.dark .prose pre {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */

/* Very Small Screens - 300-400px range fixes */
@media (max-width: 400px) {
  /* Adjust navbar container for very small screens */
  .nav-liquid {
    margin: 8px !important;
    padding: 8px 12px !important;
    min-height: auto !important;
  }

  /* Reduce container padding for very small screens */
  .nav-liquid .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Hide desktop navigation completely */
  .nav-links-liquid {
    display: none !important;
  }

  /* Hide desktop auth buttons completely */
  .desktop-auth {
    display: none !important;
  }

  /* Ensure mobile controls are visible and properly sized */
  .md\:hidden.flex.items-center.space-x-2 {
    display: flex !important;
    gap: 8px !important;
  }

  /* Compact logo for very small screens */
  .nav-liquid img.h-8 {
    height: 24px !important;
    width: auto !important;
  }

  /* Smaller theme toggle buttons */
  .theme-toggle-compact {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 6px !important;
  }

  .theme-toggle-compact svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Compact hamburger button */
  .mobile-controls button {
    padding: 6px !important;
  }

  .mobile-controls button svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Reduce separator size */
  .h-6.w-px.bg-gray-300 {
    height: 20px !important;
  }

  /* Adjust mobile menu spacing */
  .nav-liquid .mt-4 {
    margin-top: 12px !important;
  }

  .nav-liquid .space-y-3 > * + * {
    margin-top: 8px !important;
  }

  /* Compact mobile auth buttons */
  .mobile-auth-button {
    padding: 8px 16px !important;
    font-size: 12px !important;
    min-width: 100px !important;
  }
}

/* Medium Screens - 500-768px range */
@media (min-width: 501px) and (max-width: 768px) {
  /* Adjust navigation gaps for medium screens */
  .nav-links-liquid {
    gap: 12px !important;
  }

  /* Compact navigation links */
  .nav-links-liquid a {
    padding: 6px 12px !important;
    font-size: 13px !important;
  }

  /* Show mobile controls with medium sizing */
  .md\:hidden.flex.items-center.space-x-2 {
    display: flex !important;
    gap: 12px !important;
  }

  /* Hide desktop auth buttons */
  .desktop-auth {
    display: none !important;
  }

  /* Medium theme toggle */
  .theme-toggle-compact {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Medium logo */
  .nav-liquid img.h-8 {
    height: 30px !important;
  }
}

/* Small Screens - 400-500px range */
@media (min-width: 401px) and (max-width: 500px) {
  /* Slightly larger than very small screens */
  .nav-liquid {
    margin: 10px !important;
    padding: 10px 16px !important;
  }

  /* Adjust navigation gaps */
  .nav-links-liquid {
    gap: 16px !important;
  }

  /* Hide desktop navigation in this range */
  .nav-links-liquid {
    display: none !important;
  }

  /* Show mobile controls */
  .md\:hidden.flex.items-center.space-x-2 {
    display: flex !important;
  }

  /* Hide desktop auth buttons */
  .desktop-auth {
    display: none !important;
  }

  /* Medium-sized theme toggle */
  .theme-toggle-compact {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  /* Medium-sized logo */
  .nav-liquid img.h-8 {
    height: 28px !important;
  }
}

/* Enhanced mobile detection - simplified approach */
@media (max-width: 768px) {
  /* Hide desktop navigation on mobile */
  .nav-links-liquid { display: none !important; }

  /* Hide desktop auth buttons on mobile */
  .hidden.md\:flex.items-center.space-x-3 {
    display: none !important;
  }

  /* Ensure mobile controls are visible */
  .md\:hidden.flex.items-center.space-x-2 {
    display: flex !important;
  }

  /* Adjust navbar for mobile */
  .nav-liquid {
    margin: 16px;
    padding: 12px 24px;
  }

  .hero h1 { font-size: 2.5rem; }
  .hero-glass { padding: 40px 24px; }

  /* Notification dropdown mobile responsiveness */
  .notification-dropdown-liquid {
    width: calc(100vw - 32px) !important;
    max-width: 350px !important;
    right: 16px !important;
    left: 16px !important;
  }
}

/* Mobile landscape - show full navigation, no hamburger, single theme toggle */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 600px),
       (min-width: 768px) and (max-width: 1200px) and (max-height: 500px),
       (min-width: 768px) and (max-width: 1400px) and (max-height: 450px) {
  /* SHOW full navigation in landscape */
  .nav-links-liquid {
    display: flex !important;
    gap: 8px !important;
  }

  /* HIDE hamburger menu in landscape */
  .md\:hidden.flex.items-center.space-x-2 {
    display: none !important;
  }

  /* SHOW desktop auth buttons with reduced size */
  .desktop-auth {
    display: flex !important;
    gap: 2px !important;
  }

  /* SHOW the theme toggle button on the right side in landscape */
  .desktop-auth > :last-child.theme-toggle-button {
    display: inline-flex !important;
    margin-left: 4px !important;
  }

  /* Make navbar more compact in landscape */
  .nav-liquid {
    margin: 4px;
    padding: 4px 8px;
    border-radius: 10px;
    min-height: 36px;
  }

  /* Ultra compact navigation links */
  .nav-links-liquid a {
    padding: 4px 6px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
  }

  /* Reduce all button sizes in landscape */
  .theme-toggle-button {
    padding: 3px 6px !important;
    font-size: 8px !important;
    border-radius: 8px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  /* Compact theme toggle SVG icons */
  .theme-toggle-button svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* Compact auth buttons */
  .desktop-auth .theme-toggle-button:not(:last-child),
  .mobile-auth-button {
    padding: 3px 6px !important;
    font-size: 8px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  /* User profile image */
  .desktop-auth img,
  .nav-liquid img {
    height: 20px !important;
    width: 20px !important;
  }

  /* Compact logo */
  .nav-liquid img.h-8 {
    height: 18px !important;
  }

  /* Compact separator */
  .h-6.w-px.bg-gray-300 {
    height: 14px !important;
    width: 1px !important;
  }
}

/* Height-based fixes for very small heights (175px range) */
@media (max-height: 200px) {
  /* Make navbar ultra compact for small heights */
  .nav-liquid {
    margin: 2px !important;
    padding: 2px 6px !important;
    min-height: 32px !important;
  }

  /* Ultra compact logo */
  .nav-liquid img.h-8 {
    height: 16px !important;
  }

  /* Hide navigation links to save vertical space */
  .nav-links-liquid {
    display: none !important;
  }

  /* Show mobile controls with compact layout */
  .md\:hidden.flex.items-center.space-x-2 {
    display: flex !important;
    gap: 4px !important;
  }

  /* Hide desktop auth buttons */
  .desktop-auth {
    display: none !important;
  }

  /* Ultra compact theme toggle */
  .theme-toggle-compact {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 4px !important;
  }

  .theme-toggle-compact svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Ultra compact hamburger */
  .mobile-controls button {
    padding: 4px !important;
  }

  .mobile-controls button svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Remove separator to save space */
  .h-6.w-px.bg-gray-300 {
    display: none !important;
  }
}

/* Fix overlap issues for specific width/height combinations */
@media (max-width: 400px) and (max-height: 200px) {
  /* Extra compact for both small width and height */
  .nav-liquid {
    margin: 2px !important;
    padding: 2px 4px !important;
    min-height: 28px !important;
  }

  .nav-liquid img.h-8 {
    height: 14px !important;
  }

  .theme-toggle-compact {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }

  .mobile-controls button svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Original mobile fallback for very small screens */
@media (max-width: 768px) {
  .nav-links-liquid { display: none; }
}

/* Mobile Theme Toggle - Compact Version - Using Glass Images */
.theme-toggle-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
}

.light .theme-toggle-compact {
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark .theme-toggle-compact {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-toggle-compact:hover {
  background-image: url('/glass-card-hover.png');
  transform: translateY(-2px);
}

.light .theme-toggle-compact:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .theme-toggle-compact:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Mobile Theme Toggle - Landscape Version (Ultra Compact) - Using Glass Images */
.theme-toggle-landscape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url('/glass-card.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
}

.light .theme-toggle-landscape {
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark .theme-toggle-landscape {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-toggle-landscape:hover {
  background-image: url('/glass-card-hover.png');
  transform: translateY(-1px);
}

.light .theme-toggle-landscape:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .theme-toggle-landscape:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Adjust SVG icons for compact theme toggles */
.theme-toggle-compact svg {
  width: 20px;
  height: 20px;
}

.theme-toggle-landscape svg {
  width: 16px;
  height: 16px;
}



/* Slide-in from left animation for mobile sidebar */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideInFromLeft 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.liquid-button input::-moz-placeholder {
  color: inherit;
  opacity: 0.6;
}

.liquid-button input::placeholder {
  color: inherit;
  opacity: 0.6;
}

.light .liquid-button input,
.light .liquid-button select,
.light .liquid-button textarea,
.dark .liquid-button input,
.dark .liquid-button select,
.dark .liquid-button textarea {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: transparent !important;
}

/* Explicit input text colors so typed text is always readable.
   (Fixes dark mode: text was inheriting a dark/gray color and became invisible on the dark field.) */
.light .liquid-button input,
.light .liquid-button select,
.light .liquid-button textarea {
  color: #1a1a1a !important;
}
.dark .liquid-button input,
.dark .liquid-button select,
.dark .liquid-button textarea {
  color: #ffffff !important;
}

.liquid-button textarea::-moz-placeholder {
  color: inherit;
  opacity: 0.6;
}

.liquid-button textarea::placeholder {
  color: inherit;
  opacity: 0.6;
}

.disable-btn-glow .liquid-button::before {
  display: none !important;
}

.disable-btn-glow .liquid-button:hover::before {
  display: none !important;
}

.disable-btn-glow .liquid-button:hover {
  transform: none !important;
  background-image: url('/glass-card.png') !important;
}

.disable-btn-glow .liquid-button-small::before {
  display: none !important;
}

.disable-btn-glow .liquid-button-small:hover::before {
  display: none !important;
}

.disable-btn-glow .liquid-button-small:hover {
  transform: none !important;
}

/* ── Modal = dark surface in BOTH themes ──────────────────────────────
   Modal card translucent glass ka hai aur peeche hamesha dark scrim +
   blur hota hai. Light theme me body se inherit hua dark text / dark
   inputs / dark button labels yahan invisible ho jate the — isliye
   modal ke andar light theme me bhi dark-theme jaisa white content. */
.light .modal-liquid-card .liquid-button,
.light .modal-liquid-card .liquid-button-small,
.light .modal-liquid-card .liquid-button-on-bg,
.light .modal-liquid-card .liquid-tag,
.light .modal-liquid-card .theme-toggle-button {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.light .modal-liquid-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
.light .modal-liquid-card textarea,
.light .modal-liquid-card select,
.light .modal-liquid-card .liquid-button input,
.light .modal-liquid-card .liquid-button select,
.light .modal-liquid-card .liquid-button textarea {
  color: #ffffff !important;
}

.light .modal-liquid-card input::-moz-placeholder, .light .modal-liquid-card textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.light .modal-liquid-card input::placeholder,
.light .modal-liquid-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* FileUpload (dropzone + selected-file rows) modal ke andar: light theme
   me bg-white/60/40 solid white padh kar dark surface par chipak jata tha —
   dark theme jaisa transparent (5%) look. */
.light .modal-liquid-card [class*="bg-white/6"],
.light .modal-liquid-card [class*="bg-white/5"],
.light .modal-liquid-card [class*="bg-white/4"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.light .modal-liquid-card [class*="bg-white/7"]:hover,
.light .modal-liquid-card [class*="bg-white/5"]:hover {
  background-color: rgba(255, 255, 255, 0.14) !important;
}