/* ETS BI — Enterprise Modern Styling */

/* Smooth scrolling and root setup */
html {
    scroll-behavior: smooth;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Tabular figures for data tables and KPI cards */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Dark mode scrollbars */
.dark ::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.55);
}

/* Blazor error UI */
#blazor-error-ui {
    display: none;
}

/* Glassmorphism surfaces */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.dark .glass-panel {
    background: rgba(19, 28, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Card hover animation */
.card-hover {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
}

/* Accessible focus ring */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Leaflet container fixes */
.leaflet-container {
    background-color: #f1f5f9;
    font-family: inherit;
    border-radius: 0.75rem;
}
.dark .leaflet-container {
    background-color: #0b0f19;
}
.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}
.dark .leaflet-popup-content-wrapper {
    background: #1e293b;
    color: #f8fafc;
}

/* Tooltip & badge transitions */
.transition-smooth {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
