/* public/css/graficas.css */
.graficas-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.graficas-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.controles-graficas {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.btn-tipo-grafica {
    min-width: 120px;
    margin: 5px;
}

.btn-tipo-grafica.active {
    background-color: #0d6efd;
    color: white;
}

.grafica-container {
    height: 400px;
    position: relative;
    margin: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0;
}

.filtros-avanzados {
    background: #f1f3f4;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.filtro-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filtro-group label {
    min-width: 150px;
    font-weight: 500;
}

.export-options {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.loader-graficas {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.spinner-graficas {
    width: 3rem;
    height: 3rem;
}

.tabla-beneficiarios {
    max-height: 500px;
    overflow-y: auto;
}

.tabla-beneficiarios table {
    font-size: 0.9rem;
}

.tabla-beneficiarios th {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chart-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .grafica-container {
        height: 300px;
    }
    
    .btn-tipo-grafica {
        min-width: 90px;
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}