/* Glassmorphism Logic */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b; 
}

::-webkit-scrollbar-thumb {
    background: #475569; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b; 
}

/* Tabulator Customization for Dark Theme */
.tabulator {
    background-color: #1e293b !important; /* bg-slate-800 */
    border: none !important;
}

.tabulator-header {
    background-color: #0f172a !important; /* bg-slate-900 */
    border-bottom: 1px solid #334155 !important; /* border-slate-700 */
    color: #94a3b8 !important; /* text-slate-400 */
    font-weight: 600;
}

.tabulator-headers .tabulator-col {
    background-color: #0f172a !important;
    border-right: 1px solid #334155 !important;
}

.tabulator-headers .tabulator-col:hover {
    background-color: #1e293b !important;
}

.tabulator-row {
    background-color: #1e293b !important;
    color: #e2e8f0 !important; /* text-slate-200 */
    border-bottom: 1px solid #334155 !important;
}

.tabulator-row:nth-child(even) {
    background-color: #1a2436 !important; /* Slightly darker */
}

.tabulator-row:hover {
    background-color: #334155 !important; /* bg-slate-700 */
}

.tabulator-row.tabulator-selected {
    background-color: #2563eb !important; /* bg-blue-600 */
    color: white !important;
}

.tabulator-footer {
    background-color: #0f172a !important;
    border-top: 1px solid #334155 !important;
}

.tabulator-footer .tabulator-page {
    border: 1px solid #475569 !important;
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

.tabulator-footer .tabulator-page.active {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

.tabulator-footer .tabulator-page:not(.disabled):hover {
    background: #334155 !important;
    color: white !important;
}

/* Specific KPI Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kpi-value {
    animation: countUp 0.8s ease-out forwards;
}
