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

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1A1B23;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #2A2D3A;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3D4565;
}

/* Glass panel */
.glass-panel {
    background: #232530;
}

/* Table overrides to give breathing room */
#table-body td {
    padding-top: 1.25rem !important; 
    padding-bottom: 1.25rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
#table-body tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}
#table-body tr:last-child {
    border-bottom: none !important;
}

/* Animations */
@keyframes pulse-slow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(92, 97, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(92, 97, 255, 0);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite;
}

/* Leaflet Dark Theme Overrides */
.leaflet-container {
    background-color: #1A1B23 !important;
    font-family: 'Inter', sans-serif !important;
}

.leaflet-popup-content-wrapper {
    background: #232530 !important;
    color: #F0F2F8 !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: #232530 !important;
}

.leaflet-bar a {
    background-color: #232530 !important;
    color: #8690BC !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.leaflet-bar a:hover {
    background-color: #2A2D3A !important;
    color: #F0F2F8 !important;
}

.leaflet-control-attribution {
    background: rgba(35, 37, 48, 0.8) !important;
    color: #525B81 !important;
}

/* Marker Cluster Customization */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(92, 97, 255, 0.3);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: #5C61FF;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(92, 97, 255, 0.5);
}

/* ApexCharts Dark Theme Fixes */
.apexcharts-tooltip {
    background: #232530 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #F0F2F8 !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
}

.apexcharts-tooltip-title {
    background: #1A1B23 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.apexcharts-menu {
    background: #232530 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #F0F2F8 !important;
}

.apexcharts-theme-light .apexcharts-gridline {
    stroke: rgba(255, 255, 255, 0.03) !important;
}