/* =============================================
   COMPLETE THEME SYSTEM ENHANCEMENTS
   Advanced styling for ALL existing themes
============================================= */

/* =============================================
   FUSION THEME - Colorful Geometric Harmony
============================================= */
html[data-theme="fusion"],
:root[data-theme="fusion"] {
    --color-background: #fafbfc;
    --theme-radius-md: 12px;
    --theme-radius-lg: 16px;
}

html[data-theme="fusion"] body {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f3f6 100%);
    background-attachment: fixed;
}

html[data-theme="fusion"] .glass-card,
html[data-theme="fusion"] .card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

html[data-theme="fusion"] .glass-card::before,
html[data-theme="fusion"] .card::before {
    content: '';
 position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #ef4444, #f59e0b, #10b981);
    background-size: 300% 100%;
    animation: fusionRainbow 6s linear infinite;
}

@keyframes fusionRainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

html[data-theme="fusion"] .glass-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

html[data-theme="fusion"] .btn,
html[data-theme="fusion"] .btn-primary,
html[data-theme="fusion"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="fusion"] .btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px) scale(1.02);
}

html[data-theme="fusion"] .pill-nav {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html[data-theme="fusion"] .pill-nav__item.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* =============================================
   TERMINAL THEME - Hacker Aesthetic (FIXED)
============================================= */
html[data-theme="terminal"],
:root[data-theme="terminal"] {
    --color-background: #0d1117;
    --color-surface: #161b22;
    --color-surface-subtle: #1c2128;
    --color-surface-elevated: #21262d;
    
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;
    
    --border-light: #30363d;
    --border-medium: #39ff14;
    --border-dark: #48d597;
    
    --google-blue: #39ff14;
    --google-blue-light: #58ff33;
    --google-blue-dark: #1ad600;
    --google-blue-subtle: rgba(57, 255, 20, 0.1);
    
 --google-red: #ff6b6b;
    --google-yellow: #ffeb3b;
    --google-green: #39ff14;
    
    --theme-radius-md: 4px;
    --theme-radius-lg: 6px;
}

html[data-theme="terminal"] body {
    background: #0d1117;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: #c9d1d9;
}

html[data-theme="terminal"] .glass-card,
html[data-theme="terminal"] .card {
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid #39ff14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.15),
      inset 0 0 20px rgba(57, 255, 20, 0.05);
    position: relative;
    overflow: hidden;
    color: #c9d1d9;
}

html[data-theme="terminal"] .glass-card::before,
html[data-theme="terminal"] .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #39ff14, transparent);
    animation: terminalScan 2s linear infinite;
}

@keyframes terminalScan {
    0% { transform: translateY(0); opacity: 0.5; }
    100% { transform: translateY(100vh); opacity: 0; }
}

html[data-theme="terminal"] .glass-card::after,
html[data-theme="terminal"] .card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(57, 255, 20, 0.03) 0px,
        rgba(57, 255, 20, 0.03) 1px,
        transparent 1px,
     transparent 2px
    );
    pointer-events: none;
}

html[data-theme="terminal"] h1,
html[data-theme="terminal"] h2,
html[data-theme="terminal"] h3,
html[data-theme="terminal"] h4,
html[data-theme="terminal"] h5,
html[data-theme="terminal"] h6 {
    color: #39ff14;
}

html[data-theme="terminal"] .btn,
html[data-theme="terminal"] .btn-primary,
html[data-theme="terminal"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid #39ff14;
    color: #39ff14;
border-radius: 4px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

html[data-theme="terminal"] .btn:hover {
    background: rgba(57, 255, 20, 0.2);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    transform: translateY(-1px);
}

html[data-theme="terminal"] .pill-nav {
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid #39ff14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

html[data-theme="terminal"] .pill-nav__item {
    color: #c9d1d9;
}

html[data-theme="terminal"] .pill-nav__item.active {
 background: rgba(57, 255, 20, 0.2);
    color: #39ff14;
    box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.3);
}

html[data-theme="terminal"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="terminal"] select,
html[data-theme="terminal"] textarea {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    color: #c9d1d9;
}

html[data-theme="terminal"] input:focus,
html[data-theme="terminal"] select:focus,
html[data-theme="terminal"] textarea:focus {
    border-color: #39ff14;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

/* =============================================
   RETRO THEME - 80s Nostalgia (IMPROVED CONTRAST)
============================================= */
html[data-theme="retro"],
:root[data-theme="retro"] {
    --color-background: #1a1a2e;
    --color-surface: #16213e;
    --color-surface-subtle: #0f3460;
    --color-surface-elevated: #1a2744;
    
    --text-primary: #ffffff;
    --text-secondary: #e94560;
    --text-tertiary: #ff6bcb;
    
    --border-light: #0f3460;
    --border-medium: #e94560;
    --border-dark: #ff6bcb;
    
    --google-blue: #ff6bcb;
  --google-blue-light: #ff8fd8;
    --google-blue-dark: #d946a0;
    --google-blue-subtle: rgba(255, 107, 203, 0.15);
    
    --google-red: #e94560;
    --google-yellow: #ffd93d;
    --google-green: #6bcf7f;
    
    --theme-radius-md: 0px;
    --theme-radius-lg: 0px;
}

html[data-theme="retro"] body {
background: #1a1a2e;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    color: #ffffff;
}

html[data-theme="retro"] .glass-card,
html[data-theme="retro"] .card {
    background: #16213e;
    border: 4px solid #ff6bcb;
    box-shadow: 8px 8px 0 #0f3460;
  transition: all 0.2s ease;
  color: #ffffff;
}

html[data-theme="retro"] .glass-card:hover {
    box-shadow: 12px 12px 0 #0f3460;
    transform: translate(-2px, -2px);
}

html[data-theme="retro"] h1,
html[data-theme="retro"] h2,
html[data-theme="retro"] h3,
html[data-theme="retro"] h4,
html[data-theme="retro"] h5,
html[data-theme="retro"] h6 {
 color: #ff6bcb;
}

html[data-theme="retro"] .btn,
html[data-theme="retro"] .btn-primary,
html[data-theme="retro"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: #ff6bcb;
  border: 4px solid #0f3460;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
  box-shadow: 4px 4px 0 #0f3460;
 transition: all 0.1s ease;
    text-transform: uppercase;
    font-size: 0.75rem;
}

html[data-theme="retro"] .btn:hover {
    box-shadow: 6px 6px 0 #0f3460;
    transform: translate(-1px, -1px);
}

html[data-theme="retro"] .btn:active {
    box-shadow: 2px 2px 0 #0f3460;
    transform: translate(1px, 1px);
}

html[data-theme="retro"] .pill-nav {
    background: #16213e;
    border: 4px solid #ff6bcb;
 box-shadow: 6px 6px 0 #0f3460;
}

html[data-theme="retro"] .pill-nav__item {
    color: #ffffff;
}

html[data-theme="retro"] .pill-nav__item.active {
    background: #ff6bcb;
    color: #ffffff;
    border: 2px solid #fff;
}

html[data-theme="retro"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="retro"] select,
html[data-theme="retro"] textarea {
    background: #0f3460;
    border: 4px solid #ff6bcb;
    color: #ffffff;
}

html[data-theme="retro"] input:focus,
html[data-theme="retro"] select:focus,
html[data-theme="retro"] textarea:focus {
    box-shadow: 4px 4px 0 #e94560;
}

/* =============================================
   NEON THEME - Cyberpunk Glow
============================================= */
html[data-theme="neon"],
:root[data-theme="neon"] {
    --color-background: #0a0e27;
    --color-surface: #1a1f3a;
    --text-primary: #ff00ff;
    --google-blue: #00ffff;
    --theme-radius-md: 8px;
    --theme-radius-lg: 12px;
}

html[data-theme="neon"] body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    background-attachment: fixed;
}

html[data-theme="neon"] .glass-card,
html[data-theme="neon"] .card {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(26, 31, 58, 0.8), rgba(26, 31, 58, 0.8)),
    linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3),
         inset 0 0 20px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

html[data-theme="neon"] .glass-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff);
 background-size: 300% 300%;
    animation: neonPulse 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: -1;
}

@keyframes neonPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

html[data-theme="neon"] .glass-card:hover::before {
    opacity: 0.5;
}

html[data-theme="neon"] .glass-card:hover {
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.5),
        0 0 60px rgba(0, 255, 255, 0.3),
  inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-4px);
}

html[data-theme="neon"] .btn,
html[data-theme="neon"] .btn-primary,
html[data-theme="neon"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: rgba(255, 0, 255, 0.2);
border: 2px solid #ff00ff;
 color: #ff00ff;
  border-radius: 8px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

html[data-theme="neon"] .btn:hover {
    background: rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6),
     0 0 50px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

html[data-theme="neon"] .pill-nav {
    background: rgba(26, 31, 58, 0.9);
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

html[data-theme="neon"] .pill-nav__item.active {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* =============================================
   GLASS THEME - Modern Frosted Glass
============================================= */
html[data-theme="glass"],
:root[data-theme="glass"] {
    --color-background: #08111f;
    --color-surface: rgba(15, 23, 42, 0.82);
    --color-surface-subtle: rgba(125, 211, 252, 0.12);
    --color-surface-elevated: rgba(21, 32, 54, 0.92);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e1;
    --border-light: rgba(186, 230, 253, 0.28);
    --border-medium: rgba(125, 211, 252, 0.42);
    --google-blue-subtle: rgba(56, 189, 248, 0.22);
    --theme-radius-md: 16px;
    --theme-radius-lg: 24px;
}

html[data-theme="glass"] body {
    background: linear-gradient(135deg, #08111f 0%, #10233c 52%, #07101d 100%);
    background-attachment: fixed;
}

html[data-theme="glass"] .glass-card,
html[data-theme="glass"] .card {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(186, 230, 253, 0.28);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="glass"] .glass-card:hover {
    background: rgba(21, 32, 54, 0.86);
    border-color: rgba(125, 211, 252, 0.5);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

html[data-theme="glass"] .btn,
html[data-theme="glass"] .btn-primary,
html[data-theme="glass"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: rgba(14, 165, 233, 0.32);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(125, 211, 252, 0.55);
    color: #ffffff;
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="glass"] .btn:hover {
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

html[data-theme="glass"] .pill-nav {
    background: rgba(8, 17, 31, 0.88);
    backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(186, 230, 253, 0.28);
}

html[data-theme="glass"] .pill-nav__item.active {
    background: rgba(56, 189, 248, 0.24);
    color: #bae6fd;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* =============================================
   VAPORWAVE THEME - Aesthetic Dreams (IMPROVED CONTRAST)
============================================= */
html[data-theme="vaporwave"],
:root[data-theme="vaporwave"] {
    --color-background: #1a0033;
    --color-surface: #2d0a4d;
    --color-surface-subtle: rgba(255, 113, 206, 0.1);
    --color-surface-elevated: #3d1566;
    
    --text-primary: #ffffff;
    --text-secondary: #ff71ce;
    --text-tertiary: #b967ff;
    
    --border-light: rgba(255, 113, 206, 0.3);
    --border-medium: #ff71ce;
  --border-dark: #01cdfe;
    
    --google-blue: #01cdfe;
    --google-blue-light: #33d9ff;
    --google-blue-dark: #00a8cc;
    --google-blue-subtle: rgba(1, 205, 254, 0.15);
    
    --google-red: #ff71ce;
    --google-yellow: #ffd93d;
  --google-green: #05ffa1;
    
    --theme-radius-md: 12px;
}

html[data-theme="vaporwave"] body {
    background: linear-gradient(180deg, #1a0033 0%, #330066 100%);
    background-attachment: fixed;
    color: #ffffff;
}

html[data-theme="vaporwave"] .glass-card,
html[data-theme="vaporwave"] .card {
    background: rgba(45, 10, 77, 0.9);
    border: 2px solid #ff71ce;
    box-shadow: 0 8px 32px rgba(255, 113, 206, 0.3),
         inset 0 0 20px rgba(1, 205, 254, 0.1);
    transition: all 0.3s ease;
    color: #ffffff;
}

html[data-theme="vaporwave"] .glass-card::before {
    content: '';
    position: absolute;
 top: 0;
 left: 0;
    right: 0;
height: 3px;
    background: linear-gradient(90deg, #ff71ce, #01cdfe, #05ffa1, #01cdfe, #ff71ce);
 background-size: 200% 100%;
    animation: vaporwaveGlow 3s linear infinite;
}

@keyframes vaporwaveGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

html[data-theme="vaporwave"] .glass-card:hover {
    box-shadow: 0 12px 48px rgba(255, 113, 206, 0.4),
                0 0 40px rgba(1, 205, 254, 0.3);
    transform: translateY(-4px);
}

html[data-theme="vaporwave"] h1,
html[data-theme="vaporwave"] h2,
html[data-theme="vaporwave"] h3,
html[data-theme="vaporwave"] h4,
html[data-theme="vaporwave"] h5,
html[data-theme="vaporwave"] h6 {
    color: #ff71ce;
}

html[data-theme="vaporwave"] .btn,
html[data-theme="vaporwave"] .btn-primary,
html[data-theme="vaporwave"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: linear-gradient(135deg, #ff71ce 0%, #01cdfe 100%);
    border: none;
    color: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(255, 113, 206, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme="vaporwave"] .btn:hover {
  box-shadow: 0 8px 32px rgba(255, 113, 206, 0.6),
    0 0 20px rgba(1, 205, 254, 0.4);
    transform: translateY(-2px) scale(1.02);
}

html[data-theme="vaporwave"] .pill-nav {
    background: rgba(45, 10, 77, 0.95);
    border: 2px solid #01cdfe;
    box-shadow: 0 0 20px rgba(1, 205, 254, 0.3);
}

html[data-theme="vaporwave"] .pill-nav__item {
    color: #ffffff;
}

html[data-theme="vaporwave"] .pill-nav__item.active {
    background: linear-gradient(135deg, #ff71ce, #01cdfe);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme="vaporwave"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="vaporwave"] select,
html[data-theme="vaporwave"] textarea {
    background: rgba(45, 10, 77, 0.8);
    border: 2px solid #ff71ce;
    color: #ffffff;
}

html[data-theme="vaporwave"] input:focus,
html[data-theme="vaporwave"] select:focus,
html[data-theme="vaporwave"] textarea:focus {
    border-color: #01cdfe;
    box-shadow: 0 0 15px rgba(1, 205, 254, 0.4);
}

/* =============================================
   FROSTED THEME - Winter Ice (IMPROVED CONTRAST)
============================================= */
html[data-theme="frosted"],
:root[data-theme="frosted"] {
    --color-background: #e8f4f8;
    --color-surface: #ffffff;
    --color-surface-subtle: #f0f9ff;
 --color-surface-elevated: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    
    --border-light: rgba(59, 130, 246, 0.2);
  --border-medium: rgba(59, 130, 246, 0.4);
    --border-dark: #3b82f6;
    
    --google-blue: #3b82f6;
    --google-blue-light: #60a5fa;
    --google-blue-dark: #2563eb;
  --google-blue-subtle: rgba(59, 130, 246, 0.15);
    
    --google-red: #ef4444;
    --google-yellow: #f59e0b;
    --google-green: #10b981;
    
    --theme-radius-md: 16px;
    --theme-radius-lg: 20px;
}

html[data-theme="frosted"] body {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 100%);
    background-attachment: fixed;
    color: #0f172a;
}

html[data-theme="frosted"] .glass-card,
html[data-theme="frosted"] .card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) brightness(1.05);
    -webkit-backdrop-filter: blur(15px) brightness(1.05);
    border: 1px solid rgba(59, 130, 246, 0.25);
box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12),
  inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    color: #0f172a;
}

html[data-theme="frosted"] .glass-card::before {
  content: '';
    position: absolute;
    top: 0;
  left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

html[data-theme="frosted"] .glass-card:hover::before {
    left: 100%;
}

html[data-theme="frosted"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.18);
    transform: translateY(-4px);
}

html[data-theme="frosted"] h1,
html[data-theme="frosted"] h2,
html[data-theme="frosted"] h3,
html[data-theme="frosted"] h4,
html[data-theme="frosted"] h5,
html[data-theme="frosted"] h6 {
    color: #1e40af;
}

html[data-theme="frosted"] .btn,
html[data-theme="frosted"] .btn-primary,
html[data-theme="frosted"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #1e40af;
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
    font-weight: 600;
}

html[data-theme="frosted"] .btn:hover {
    background: rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

html[data-theme="frosted"] .pill-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

html[data-theme="frosted"] .pill-nav__item {
    color: #334155;
}

html[data-theme="frosted"] .pill-nav__item.active {
    background: rgba(59, 130, 246, 0.2);
    color: #1e40af;
box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.2);
}

html[data-theme="frosted"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="frosted"] select,
html[data-theme="frosted"] textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #0f172a;
}

html[data-theme="frosted"] input:focus,
html[data-theme="frosted"] select:focus,
html[data-theme="frosted"] textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =============================================
   SILVER METALLIC - Sharp, Cold, Industrial (IMPROVED CONTRAST)
============================================= */
html[data-theme="silver-metallic"],
:root[data-theme="silver-metallic"] {
    --color-background: #e2e8f0;
    --color-surface: #f1f5f9;
    --color-surface-subtle: #cbd5e1;
    --color-surface-elevated: #f8fafc;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;

    --border-light: #94a3b8;
    --border-medium: #64748b;
    --border-dark: #475569;

    --google-blue: #3b82f6;
    --google-blue-light: #60a5fa;
    --google-blue-dark: #2563eb;
    --google-blue-subtle: rgba(59, 130, 246, 0.1);

    --google-red: #ef4444;
    --google-yellow: #f59e0b;
    --google-green: #10b981;

    --theme-radius-md: 4px;
    --theme-radius-lg: 6px;
    --theme-border-width: 2px;
    --theme-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --theme-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="silver-metallic"] body {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    background-attachment: fixed;
    color: #0f172a;
}

html[data-theme="silver-metallic"] .glass-card,
html[data-theme="silver-metallic"] .card {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 
              inset 0 1px 0 rgba(255, 255, 255, 0.95),
       inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    color: #0f172a;
}

html[data-theme="silver-metallic"] h1,
html[data-theme="silver-metallic"] h2,
html[data-theme="silver-metallic"] h3,
html[data-theme="silver-metallic"] h4,
html[data-theme="silver-metallic"] h5,
html[data-theme="silver-metallic"] h6 {
    color: #1e293b;
}

html[data-theme="silver-metallic"] .glass-card::before,
html[data-theme="silver-metallic"] .card::before {
    content: '';
    position: absolute;
    top: 0;
 left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

html[data-theme="silver-metallic"] .glass-card:hover::before,
html[data-theme="silver-metallic"] .card:hover::before {
    left: 100%;
}

html[data-theme="silver-metallic"] .glass-card:hover,
html[data-theme="silver-metallic"] .card:hover {
    border-color: var(--border-medium);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 
      inset 0 1px 0 rgba(255, 255, 255, 1),
     inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

html[data-theme="silver-metallic"] .btn,
html[data-theme="silver-metallic"] .btn-primary,
html[data-theme="silver-metallic"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    border: 2px solid #94a3b8;
    border-radius: 4px;
    color: #0f172a;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 
  inset 0 1px 0 rgba(255, 255, 255, 0.9),
              inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

html[data-theme="silver-metallic"] .btn::after,
html[data-theme="silver-metallic"] .btn-primary::after {
    content: '';
    position: absolute;
  top: 0;
    left: 0;
    right: 0;
  height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 4px 4px 0 0;
}

html[data-theme="silver-metallic"] .btn:hover,
html[data-theme="silver-metallic"] .btn-primary:hover {
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    border-color: #64748b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 
        inset 0 1px 0 rgba(255, 255, 255, 1),
     inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

html[data-theme="silver-metallic"] .btn:active,
html[data-theme="silver-metallic"] .btn-primary:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2),
   inset 0 -1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(0);
}

html[data-theme="silver-metallic"] .pill-nav {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #94a3b8;
    border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 
         inset 0 1px 0 rgba(255, 255, 255, 0.9),
           inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

html[data-theme="silver-metallic"] .pill-nav__item {
 color: #334155;
    border-radius: 4px;
    transition: all 0.15s ease;
    position: relative;
}

html[data-theme="silver-metallic"] .pill-nav__item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

html[data-theme="silver-metallic"] .pill-nav__item:hover {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 50%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

html[data-theme="silver-metallic"] .pill-nav__item.active {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: white;
 box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3),
      inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="silver-metallic"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="silver-metallic"] select,
html[data-theme="silver-metallic"] textarea {
    background: white;
    border: 2px solid #94a3b8;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1),
      inset 0 -1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.15s ease;
    color: #0f172a;
}

html[data-theme="silver-metallic"] input:focus,
html[data-theme="silver-metallic"] select:focus,
html[data-theme="silver-metallic"] textarea:focus {
    border-color: #3b82f6;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 
    0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}
