/* Premium Dashboard Stylesheet */

/* Background glow grid */
body {
    background-color: #080a0f;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 45%),
        linear-gradient(rgba(13, 17, 23, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 17, 23, 0.4) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(17, 22, 31, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.05);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(15, 18, 23, 0.5);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 4px;
    transition: background 0.3s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

/* Range Slider Customization */
input[type="range"]::-webkit-slider-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
    transition: transform 0.1s, background-color 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #22d3ee;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #1e293b;
    border-radius: 3px;
}

/* Map Styling */
.country-path {
    stroke: #181d26;
    stroke-width: 0.8px;
    transition: fill 0.3s, stroke 0.3s, filter 0.3s;
    cursor: pointer;
}

.country-path:hover {
    stroke: #06b6d4;
    stroke-width: 1.5px;
    filter: drop-shadow(0px 0px 8px rgba(6, 182, 212, 0.4));
}

.country-selected {
    stroke: #818cf8 !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0px 0px 12px rgba(129, 140, 248, 0.6)) !important;
}

.country-compare {
    stroke: #06b6d4 !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0px 0px 12px rgba(6, 182, 212, 0.6)) !important;
}

/* Active Row in Rankings Table */
.active-rank-row {
    background: rgba(99, 102, 241, 0.12) !important;
    border-left: 3px solid #6366f1;
}

.compare-rank-row {
    background: rgba(6, 182, 212, 0.12) !important;
    border-left: 3px solid #06b6d4;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .4;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
