/* Atenea Institutional Dashboard - Frontend */

.atenea-institutional-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 40px;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.license-info {
    color: #666;
    font-size: 14px;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.kpi-card .kpi-value {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 8px;
}

.kpi-card .kpi-label {
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trend-up { color: #4ade80; font-size: 24px; }
.trend-down { color: #f87171; font-size: 24px; }

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.stats-table tr:last-child {
    border-bottom: none;
}

.stats-table td {
    padding: 12px 8px;
    vertical-align: middle;
}

.stats-table td:first-child {
    font-weight: 500;
    color: #374151;
}

.stats-table .percentage {
    text-align: right;
    font-weight: 600;
    color: #667eea;
    min-width: 60px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.atenea-notice {
    padding: 20px 24px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    border-left: 4px solid;
}

.atenea-notice.info {
    background: #e5f5fa;
    border-left-color: #2271b1;
    color: #2271b1;
}

.atenea-notice.warning {
    background: #fff8e1;
    border-left-color: #f59e0b;
    color: #92400e;
}

@media (max-width: 768px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .dashboard-kpis {
        grid-template-columns: 1fr 1fr;
    }
    
    .kpi-card .kpi-value {
        font-size: 32px;
    }
}
