/* ============================================================
   CALIFICACIONES CSS
   Estilos específicos para páginas de calificaciones
   DIPP-UNAH | v1.0.0
   ============================================================ */

/* ── Calificación Badges ─────────────────────────────────── */
.calificacion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calificacion-badge.excelente {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.calificacion-badge.muy-buena {
    background: linear-gradient(135deg, #17a2b8 0%, #0dcaf0 100%);
    color: white;
}

.calificacion-badge.buena {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #856404;
}

.calificacion-badge.aprobada {
    background: linear-gradient(135deg, #fd7e14 0%, #ff922b 100%);
    color: white;
}

.calificacion-badge.reprobada {
    background: linear-gradient(135deg, #dc3545 0%, #e35d6a 100%);
    color: white;
}

.calificacion-badge.otro {
    background: #6c757d;
    color: white;
}

/* ── Observación Badges ──────────────────────────────────── */
.obs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.obs-badge.aprobado {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.obs-badge.aprobado svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.obs-badge.otro {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
}

/* ── Table Footer / Estadísticas ─────────────────────────── */
.table-footer {
    background: #f8f9fa;
    padding: 20px 24px;
    border-top: 2px solid #e9ecef;
}

.estadisticas {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.stat-value {
    background: #0066cc;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    min-width: 40px;
    text-align: center;
}

.stat-item.aprobadas .stat-value {
    background: #28a745;
}

.stat-item.reprobadas .stat-value {
    background: #dc3545;
}

/* ── Alert Cards ─────────────────────────────────────────── */
.alert-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    animation: fadeInUp 0.5s ease-out;
}

.alert-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-card.warning .alert-icon {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
}

.alert-card.warning .alert-icon svg {
    width: 32px;
    height: 32px;
    stroke: #856404;
}

.alert-card.info .alert-icon {
    background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
}

.alert-card.info .alert-icon svg {
    width: 32px;
    height: 32px;
    stroke: #084298;
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.alert-content p {
    margin: 0;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
}

.alert-card.warning .alert-content h3 {
    color: #856404;
}

.alert-card.info .alert-content h3 {
    color: #084298;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .estadisticas {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .alert-card {
        flex-direction: column;
        padding: 24px;
    }

    .alert-icon {
        width: 48px;
        height: 48px;
    }

    .alert-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 576px) {
    .table-footer {
        padding: 16px;
    }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
    .alert-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* ══════════════════════════════════════════════════════════
   MODO OSCURO
══════════════════════════════════════════════════════════ */
[data-theme="dark"] .table-footer { background: #0f172a; border-top-color: #334155; }
[data-theme="dark"] .stat-label { color: #94a3b8; }
[data-theme="dark"] .alert-card {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
[data-theme="dark"] .alert-card.warning .alert-icon { background: linear-gradient(135deg,#1a1200,#1f1500); }
[data-theme="dark"] .alert-card.info .alert-icon { background: linear-gradient(135deg,#0c1a3a,#0f2040); }
[data-theme="dark"] .alert-content h3 { color: #f1f5f9; }
[data-theme="dark"] .alert-content p { color: #94a3b8; }
[data-theme="dark"] .alert-card.warning .alert-content h3 { color: #fcd34d; }
[data-theme="dark"] .alert-card.info .alert-content h3 { color: #93c5fd; }
