/* Custom Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.4);
}

/* --- PURE GLASSMORPHISM COHESIVE SYSTEM --- */
:root {
    --accent-glow: rgba(37, 99, 235, 0.5);
    --accent-glow-secondary: rgba(14, 165, 233, 0.5);
}

/* 60% Dominant Color Palette - Premium Frosted White Glass */
.glass-card-light {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.7);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-light:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-6px);
    box-shadow:
        0 25px 50px rgba(37, 99, 235, 0.12),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* 30% Secondary Color Palette - Deep Premium Charcoal Glass */
.glass-card-dark {
    background: rgba(11, 16, 30, 0.72);
    backdrop-filter: blur(32px) saturate(170%);
    -webkit-backdrop-filter: blur(32px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-dark:hover {
    background: rgba(11, 16, 30, 0.82);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-6px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(37, 99, 235, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* 10% Accent Color Palette - Neon Blue Translucent Glass */
.glass-card-accent {
    background: rgba(37, 99, 235, 0.35);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 10px 30px rgba(37, 99, 235, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-accent:hover {
    background: rgba(37, 99, 235, 0.48);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 15px 40px rgba(37, 99, 235, 0.45),
        inset 0 1px 3px rgba(255, 255, 255, 0.6);
    transform: scale(1.04);
}

/* Glass Input Fields */
.glass-input {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #0f172a;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(37, 99, 235, 0.6);
    outline: none;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

/* Accent Themes Styles */
.theme-royal {
    --accent-glow: rgba(37, 99, 235, 0.5);
    --accent-glow-secondary: rgba(14, 165, 233, 0.5);
    --accent-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(14, 165, 233, 0.85) 100%);
}

.theme-electric {
    --accent-glow: rgba(29, 78, 216, 0.55);
    --accent-glow-secondary: rgba(59, 130, 246, 0.55);
    --accent-gradient: linear-gradient(135deg, rgba(29, 78, 216, 0.85) 0%, rgba(59, 130, 246, 0.85) 100%);
}

.theme-cyan {
    --accent-glow: rgba(2, 132, 199, 0.55);
    --accent-glow-secondary: rgba(6, 182, 212, 0.55);
    --accent-gradient: linear-gradient(135deg, rgba(2, 132, 199, 0.85) 0%, rgba(6, 182, 212, 0.85) 100%);
}

.accent-gradient-bg {
    background: var(--accent-gradient);
}

.accent-text-glow {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Range Input Styling */
input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 99px;
    height: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -4px;
    width: 18px;
    height: 18px;
    background: rgba(37, 99, 235, 1);
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    border-radius: 99px;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.8);
}

.w-80 {
    width: 300px !important;
}

/* Global Sticky Header Wrapper */
#app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.clost-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background-color: #ef4444 !important; /* bg-red-500 */
    border: 1px solid #f87171 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
}
.clost-btn:hover {
    background-color: #dc2626 !important; /* bg-red-600 */
}