/* KPI Dashboard Specific Styles */

/* 1. Skeleton Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.skeleton-bg {
    background-color: rgba(55, 65, 81, 0.5); /* gray-700 with opacity */
    border-radius: 0.5rem;
}

/* 2. Sticky Columns for Tables */
/* Ensures the first column (Expert Name) stays visible on horizontal scroll */
.table-sticky-col th:first-child,
.table-sticky-col td:first-child {
    position: sticky;
    right: 0; /* RTL layout */
    z-index: 10;
    background-color: inherit; /* Matches row background */
    border-left: 1px solid rgba(75, 85, 99, 0.5); /* gray-600 */
}

/* 3. Table Heatmap Colors (Tailwind-like classes for dynamic JS application) */
.bg-heatmap-red { background-color: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.bg-heatmap-yellow { background-color: rgba(234, 179, 8, 0.15); color: #fcd34d; }
.bg-heatmap-green { background-color: rgba(34, 197, 94, 0.15); color: #86efac; }

/* 4. Compact Mode Toggle */
.table-compact td, 
.table-compact th {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    font-size: 0.7rem !important;
}

/* 5. Chart Containers */
.kpi-chart-container {
    min-height: 300px;
    width: 100%;
    direction: ltr; /* ApexCharts renders better in LTR */
}

/* 6. Drill-down Link */
.drill-down-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.drill-down-link:hover {
    color: #60a5fa; /* blue-400 */
}
