/**
 * Estilos del Módulo de Indicadores Económicos
 * Ubicación: /modules/economicos/assets/css/economicos.css
 * 
 * Estilos específicos para el módulo de indicadores económicos
 */

/* ===== HEADER ===== */
.dashboard-header {
    /*background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);*/
    background: linear-gradient(135deg, #3498db  0%, #2980b9 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.dashboard-header .btn-light {
    background-color: white;
    color: #2980b9;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dashboard-header .btn-light:hover {
    background-color: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ===== SECCIÓN DE TÍTULO ===== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2980b9;
}

.section-title i {
    color: #2980b9;
    margin-right: 10px;
}

/* ===== KPI CARDS ===== */
.kpi-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kpi-card.border-primary {
    border-left-color: #3498db;
}

.kpi-card.border-success {
    border-left-color: #27ae60;
}

.kpi-card.border-info {
    border-left-color: #17a2b8;
}

.kpi-card.border-warning {
    border-left-color: #f39c12;
}

.kpi-card.border-danger {
    border-left-color: #e74c3c;
}

.kpi-card small {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.kpi-card i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* ===== CONTENEDORES DE GRÁFICOS ===== */
.chart-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.chart-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chart-container h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.chart-container h5 i {
    margin-right: 8px;
}

.chart-container canvas {
    max-height: 300px;
}

/* ===== FORMATO DE MONEDA ===== */
.currency-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #27ae60;
}

/* ===== ETIQUETAS DE VALOR ECONÓMICO ===== */
.economic-label {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.economic-label.positive {
    background-color: #d4edda;
    color: #155724;
}

.economic-label.negative {
    background-color: #f8d7da;
    color: #721c24;
}

.economic-label.neutral {
    background-color: #fff3cd;
    color: #856404;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-header p {
        font-size: 0.9rem;
    }
    
    .kpi-number {
        font-size: 1.5rem;
    }
    
    .chart-container {
        margin-bottom: 20px;
    }
    
    .chart-container canvas {
        max-height: 250px;
    }
}

/* ===== FOOTER ===== */
.footer-responsive {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-responsive a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
}

.footer-responsive a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-container {
    animation: fadeIn 0.5s ease-in-out;
}

.kpi-card {
    animation: fadeIn 0.5s ease-in-out;
}

/* ===== COLORES DE TEXTO ===== */
.text-primary {
    color: #3498db !important;
}

.text-success {
    color: #27ae60 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-warning {
    color: #f39c12 !important;
}

.text-danger {
    color: #e74c3c !important;
}

/* ===== BADGES ECONÓMICOS ===== */
.badge-price {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.badge-profit {
    background-color: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.badge-credit {
    background-color: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* ===== UTILIDADES ===== */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== TRANSICIONES GLOBALES ===== */
* {
    transition: all 0.3s ease;
}

button, a {
    cursor: pointer;
}

/* ===== ESTADOS HOVER ===== */
.chart-container:hover h5 {
    color: #27ae60;
}

/* ===== ICONOS DE MONEDA ===== */
.currency-icon {
    color: #27ae60;
    margin-right: 5px;
}

/* ===== TABLAS ECONÓMICAS (si se necesitan) ===== */
.economic-table {
    width: 100%;
    margin-top: 20px;
}

.economic-table th {
    background-color: #27ae60;
    color: white;
    padding: 10px;
    text-align: left;
}

.economic-table td {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.economic-table tr:hover {
    background-color: #f8f9fa;
}

/* ===== HIGHLIGHTS ECONÓMICOS ===== */
.economic-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #27ae60;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.economic-highlight h6 {
    color: #27ae60;
    font-weight: 700;
    margin-bottom: 10px;
}
