/* 
   Glassmorphism 2.0 & Neon Accents Framework (v2.3 - PADDING & SPACING FIX)
   Theme: Deep Navy/Black with Neon Lime (#CBFB45)
*/

:root {
    --glass-bg: rgba(10, 14, 23, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --neon-lime: #CBFB45;
    --neon-glow: 0 0 15px rgba(203, 251, 69, 0.4);
    --deep-bg: radial-gradient(circle at 50% 0%, #0a0e17 0%, #05070a 100%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* Global Background Update */
body {
    background: var(--deep-bg) !important;
    background-attachment: fixed !important;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Containers - ONLY for large panels */
header, .header-min, .sidebar, .chat-container, .modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--card-shadow);
}

/* ABSOLUTELY NO BLUR for icons, text, and inputs */
.fa, .fas, .far, .fab, i, svg, img, span, p, div:not(.glass-panel) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ULTRA SHARP INPUTS (Search, Login, Password) */
input[type="text"], 
input[type="password"], 
input[type="email"],
select, 
#chlb-query {
    background: #0d1117 !important; /* Solid dark background to prevent blur bleeding */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    padding: 12px 16px 12px 45px !important; /* CRITICAL: ADDED 45px PADDING-LEFT FOR ICONS */
    font-size: 14px !important;
    font-weight: 500 !important;
    backdrop-filter: none !important; /* CRITICAL: NO BLUR */
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
    width: 100%;
    box-sizing: border-box;
}

/* Specific fix for search input if it has a different class */
#chlb-query {
    padding-left: 45px !important;
}

input::placeholder, #chlb-query::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
}

input:focus, #chlb-query:focus {
    border-color: var(--neon-lime) !important;
    box-shadow: 0 0 12px rgba(203, 251, 69, 0.25), inset 0 2px 4px rgba(0,0,0,0.3) !important;
    outline: none;
}

/* Search Icon Fix - High Contrast & Correct Positioning */
.chlb-s-icon {
    color: var(--neon-lime) !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.8)) !important;
    z-index: 10;
    backdrop-filter: none !important;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Neon CTA Buttons - Sharp and Clear */
.btn-neon, .site-button.primary, #chlb-btn-lobby.active, .homelogin {
    background: var(--neon-lime) !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--neon-glow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.btn-neon:hover, .site-button.primary:hover, .homelogin:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(203, 251, 69, 0.6) !important;
}

/* Game Cards Enhancement - Sharp Borders */
.game-card, .ch-item, .slot-item {
    background: #161b22 !important; /* Solid background */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.game-card:hover, .ch-item:hover, .slot-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-lime) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-lime);
}
