/* Mejoras visuales para el dashboard de métricas */

/* Animaciones suaves para las tarjetas */
.fi-wi-stats-overview-stat {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.dark .fi-wi-stats-overview-stat:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

/* Tarjetas con colores sutiles y elegantes */
.fi-wi-stats-overview-stat {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
}

.dark .fi-wi-stats-overview-stat {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

/* Colores individuales para cada métrica */
.fi-wi-stats-overview-stat:nth-child(1) {
    border-left: 4px solid #3b82f6 !important; /* Azul para Ejecución */
}

.fi-wi-stats-overview-stat:nth-child(2) {
    border-left: 4px solid #10b981 !important; /* Verde para Aprobación */
}

.fi-wi-stats-overview-stat:nth-child(3) {
    border-left: 4px solid #f59e0b !important; /* Naranja para Eficiencia */
}

.fi-wi-stats-overview-stat:nth-child(4) {
    border-left: 4px solid #ef4444 !important; /* Rojo para Excedidas */
}

/* Texto de valores principales */
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value {
    color: #111827 !important; /* Negro en modo claro */
    font-weight: 700 !important;
}

.dark .fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value {
    color: #f9fafb !important; /* Blanco en modo oscuro */
}

/* Texto de labels */
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label {
    color: #374151 !important; /* Gris oscuro en modo claro */
}

.dark .fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label {
    color: #d1d5db !important; /* Gris claro en modo oscuro */
}

/* Descripciones */
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-description {
    color: #6b7280 !important;
}

.dark .fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-description {
    color: #9ca3af !important;
}

/* Asegurar que NO hay fondos verdes en ningún lugar */
.fi-wi-stats-overview-stat *,
.fi-wi-stats-overview-stat-value *,
.fi-wi-stats-overview-stat-label *,
.fi-wi-stats-overview-stat-description * {
    background: transparent !important;
}

/* Iconos con colores que coinciden con los bordes */
.fi-wi-stats-overview-stat:nth-child(1) .fi-wi-stats-overview-stat-description-icon {
    color: #3b82f6 !important; /* Azul */
}

.fi-wi-stats-overview-stat:nth-child(2) .fi-wi-stats-overview-stat-description-icon {
    color: #10b981 !important; /* Verde */
}

.fi-wi-stats-overview-stat:nth-child(3) .fi-wi-stats-overview-stat-description-icon {
    color: #f59e0b !important; /* Naranja */
}

.fi-wi-stats-overview-stat:nth-child(4) .fi-wi-stats-overview-stat-description-icon {
    color: #ef4444 !important; /* Rojo */
}

/* Iconos más atractivos */
.metricas-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px !important;
    padding: 8px !important;
    margin-right: 12px !important;
}

/* Animación de pulso para métricas importantes */
.metricas-pulso {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Responsividad mejorada */
@media (max-width: 768px) {
    .fi-wi-stats-overview-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Tooltip personalizado */
.metricas-tooltip {
    position: relative;
}

.metricas-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Mejoras para el gráfico de barras */
.eficiencia-bar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.eficiencia-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

/* Estilos para las tarjetas del filtro */
.filtros-card {
    border-radius: 16px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.dark .filtros-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

/* Estilos para el resumen ejecutivo */
.resumen-card {
    border-radius: 16px !important;
    background: linear-gradient(135deg, #fefefe 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

.dark .resumen-card {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    border: 1px solid #4a5568 !important;
}

/* Badges de tendencia */
.tendencia-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 8px !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.tendencia-positiva {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

.dark .tendencia-positiva {
    background-color: #14532d !important;
    color: #bbf7d0 !important;
}

.tendencia-negativa {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

.dark .tendencia-negativa {
    background-color: #7f1d1d !important;
    color: #fecaca !important;
}

/* Mini gráficos */
.mini-chart {
    height: 40px !important;
    width: 100% !important;
    margin-top: 8px !important;
}

/* Mejoras de accesibilidad */
.fi-wi-stats-overview-stat:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

/* Animaciones suaves para cambios de datos */
.metric-value {
    transition: all 0.3s ease !important;
}

/* Separadores elegantes */
.elegant-divider {
    height: 1px !important;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent) !important;
    margin: 1rem 0 !important;
}

.dark .elegant-divider {
    background: linear-gradient(90deg, transparent, #4a5568, transparent) !important;
}