/* ===== ESTILOS MODERNOS PARA EVALUACIONES ===== */

/* Estilos para file upload moderno */
.modern-file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed #667eea;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8f9ff, #ffffff);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
}

.file-upload-label:hover {
    border-color: #5a6fd8;
    background: linear-gradient(145deg, #f0f2ff, #f8f9ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.file-upload-label i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 8px;
}

.file-upload-label span {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.file-upload-label small {
    color: #6c757d;
    font-size: 12px;
}

/* CHECKBOX PREMIUM - DISEÑO COSTOSO Y PROFESIONAL */
.modern-checkbox-label {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    padding: 20px 25px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-weight: 700;
    color: #1e293b;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.modern-checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.1), 
        rgba(147, 51, 234, 0.1), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-checkbox-label:hover {
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #3b82f6;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(59, 130, 246, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.modern-checkbox-label:hover::before {
    left: 100%;
}

.modern-checkbox {
    display: none;
}

/* ESTILOS PREMIUM PARA CHECKBOX - SELECTOR ULTRA ESPECÍFICO */
.modern-checkbox-label .checkmark {
    width: 28px !important;
    height: 28px !important;
    border: 3px solid #e2e8f0 !important;
    border-radius: 8px !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
    display: inline-block !important;
}

.modern-checkbox-label .modern-checkbox:checked + .checkmark {
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: #1d4ed8 !important;
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.4),
        0 2px 8px rgba(29, 78, 216, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.15) !important;
}

.modern-checkbox-label .modern-checkbox:checked + .checkmark::after {
    content: '' !important;
    position: absolute !important;
    left: 8px !important;
    top: 4px !important;
    width: 8px !important;
    height: 14px !important;
    border: solid white !important;
    border-width: 0 4px 4px 0 !important;
    transform: rotate(45deg) !important;
    animation: premiumCheckmark 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
}

@keyframes premiumCheckmark {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    50% {
        width: 4px;
        height: 7px;
        opacity: 0.7;
        transform: rotate(45deg) scale(0.8);
    }
    100% {
        width: 8px;
        height: 14px;
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

.modern-checkbox-label i {
    color: #64748b;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.modern-checkbox:checked ~ i {
    color: #3b82f6;
    transform: scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.modern-checkbox-label span {
    font-size: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-checkbox:checked ~ span {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

/* ===== MEJORAS PARA VISUALIZACIÓN DE MATERIAS ===== */

.materias-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
    max-width: 100%;
    margin: 0 auto;
    align-items: start;
}

/* Optimización para pantallas grandes */
@media (min-width: 1600px) {
    .materias-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .materias-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Optimización para tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .materias-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Optimización para móviles */
@media (max-width: 767px) {
    .materias-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }
}

/* ===== CARRUSEL DESLIZABLE PARA MÓVILES Y TABLETS ===== */
.materias-carousel-container {
    position: relative;
    overflow: visible;
    border-radius: 16px;
}

.materias-carousel {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: auto;
    scroll-behavior: smooth;
}

/* En móviles y tablets, DESHABILITAR carrusel y usar grid normal */
@media (max-width: 1024px) {
    .materias-carousel {
        overflow: visible;
        display: block;
    }
    
    .materias-carousel::-webkit-scrollbar {
        display: none;
    }
    
    .materias-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }
    
    .materia-card {
        width: 100%;
        margin-bottom: 16px;
    }
}

/* Controles del carrusel */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: all;
    z-index: 11;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-prev {
    margin-left: 16px;
}

.carousel-next {
    margin-right: 16px;
}

.carousel-btn i {
    font-size: 18px;
    color: #4a5568;
}

/* Indicadores del carrusel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0 20px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #667eea;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: #667eea;
    transform: scale(1.1);
}

/* Ocultar controles en desktop */
@media (min-width: 1025px) {
    .carousel-controls,
    .carousel-indicators {
        display: none;
    }
    
    .materias-carousel-container {
        overflow: visible;
    }
}

.materia-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.materia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.materia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.materia-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.materia-header > div:first-child {
    flex: 1;
    min-width: 0;
}

.materia-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.materia-subtitle {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.materia-subtitle::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
}

.materia-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.status-en-curso {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
}

.status-aprobada {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #388e3c;
}

.status-reprobada {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #d32f2f;
}

.status-cancelada {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
}

.materia-progress {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.evaluaciones-resumen {
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.evaluaciones-resumen h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evaluaciones-resumen h4 i {
    color: #667eea;
}

.evaluaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.evaluacion-item {
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.evaluacion-item:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

.evaluacion-tipo {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.evaluacion-nota {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.evaluacion-sin-nota {
    color: #adb5bd;
    font-size: 12px;
}

.materia-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    flex-wrap: wrap;
}

.materia-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    min-width: max-content;
}

.materia-actions .btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.materia-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.materia-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.materia-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.materia-actions .btn-danger {
    background: #dc3545;
    color: white;
}

.materia-actions .btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Responsive para materias */
@media (max-width: 768px) {
    .materias-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }
    
    .materia-card {
        padding: 20px;
    }
    
    .materia-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .materia-header > div:first-child {
        width: 100%;
    }
    
    .materia-status {
        align-self: flex-end;
    }
    
    .materia-actions {
        justify-content: stretch;
    }
    
    .materia-actions .btn {
        flex: 1 1 45%;
    }
    
    .evaluaciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilos para detalles de evaluación */
.evaluacion-details {
    padding: 20px 0;
}

.detail-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.detail-item span {
    color: #495057;
    font-size: 15px;
}

.nota-value {
    font-weight: 700;
    font-size: 18px;
    color: #28a745;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.recibida {
    background: #d4edda;
    color: #155724;
}

.status-badge.pendiente {
    background: #fff3cd;
    color: #856404;
}

.evidencia-container {
    margin-top: 10px;
}

.evidencia-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.evidencia-item i {
    color: #007bff;
    font-size: 16px;
}

.evidencia-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.evidencia-preview {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.preview-loading i {
    margin-right: 8px;
}

.preview-image {
    text-align: center;
}

.preview-pdf iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    border-radius: 8px;
}

.preview-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.preview-placeholder i {
    display: block;
    margin-bottom: 15px;
}

.preview-placeholder h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.preview-placeholder p {
    margin: 5px 0;
    font-size: 14px;
}

/* Estilos para feedback de archivos - Armonizados con el diseño */
.file-selected-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    color: #2e7d32;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.file-selected-info:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.file-selected-info i.fa-check-circle {
    color: #4caf50;
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.file-selected-info span {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #1b5e20;
}

.btn-remove-file {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-remove-file:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.comentarios-container {
    margin-top: 10px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.comentarios-container p {
    margin: 0;
    line-height: 1.5;
    color: #495057;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.empty-state h4 {
    margin: 0 0 10px 0;
    color: #6c757d;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* FORZAR ESTILOS DEL CHECKBOX - SELECTOR ULTRA ESPECÍFICO */
#evaluacionModal .modern-checkbox-label .checkmark {
    width: 28px !important;
    height: 28px !important;
    border: 3px solid #e2e8f0 !important;
    border-radius: 8px !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
    display: inline-block !important;
}

#evaluacionModal .modern-checkbox-label .modern-checkbox:checked + .checkmark {
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: #1d4ed8 !important;
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.4),
        0 2px 8px rgba(29, 78, 216, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.15) !important;
}

#evaluacionModal .modern-checkbox-label .modern-checkbox:checked + .checkmark::after {
    content: '' !important;
    position: absolute !important;
    left: 8px !important;
    top: 4px !important;
    width: 8px !important;
    height: 14px !important;
    border: solid white !important;
    border-width: 0 4px 4px 0 !important;
    transform: rotate(45deg) !important;
    animation: premiumCheckmark 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
}

/* Estilos para el botón de eliminar evaluación */
.modern-btn-danger {
    background: linear-gradient(145deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(220, 53, 69, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.modern-btn-danger:hover {
    background: linear-gradient(145deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(220, 53, 69, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.modern-btn-danger:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(220, 53, 69, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.modern-btn-danger:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn-danger:hover:before {
    left: 100%;
}

.modern-btn-danger i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.modern-btn-danger:hover i {
    transform: scale(1.1);
}

/* Estilos para el botón de editar evaluación */
.modern-btn-warning {
    background: linear-gradient(145deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #212529;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(255, 193, 7, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.modern-btn-warning:hover {
    background: linear-gradient(145deg, #e0a800 0%, #d39e00 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 193, 7, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.modern-btn-warning:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(255, 193, 7, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.modern-btn-warning:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn-warning:hover:before {
    left: 100%;
}

.modern-btn-warning i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.modern-btn-warning:hover i {
    transform: scale(1.1);
}

/* ==================== ASISTENTE INTELIGENTE JARVIS ==================== */
.assistant-message {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    animation: assistantPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.assistant-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: assistantShine 3s ease-in-out infinite;
}

@keyframes assistantPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    }
}

@keyframes assistantShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Mensajes específicos del asistente */
.assistant-message:contains("🎉") {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.assistant-message:contains("😔") {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.assistant-message:contains("✅") {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.assistant-message:contains("⚠️") {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.assistant-message:contains("🔥") {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
}

.assistant-message:contains("🚨") {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    animation: assistantAlert 1s ease-in-out infinite;
}

@keyframes assistantAlert {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(244, 67, 54, 0.6);
    }
}

/* ==================== PROYECCIONES JARVIS EN EVALUACIONES ==================== */
.jarvis-projection {
    margin-top: 8px;
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.jarvis-message {
    font-size: 10px;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
    display: block;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.jarvis-projection::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: jarvisShine 4s ease-in-out infinite;
}

@keyframes jarvisShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Estilos específicos para mensajes de Jarvis en evaluaciones */
.jarvis-message:contains("🎯") {
    color: #2d3748;
    font-weight: 700;
}

.jarvis-message:contains("✅") {
    color: #38a169;
}

.jarvis-message:contains("⚠️") {
    color: #d69e2e;
}

.jarvis-message:contains("🔥") {
    color: #e53e3e;
}

.jarvis-message:contains("🚨") {
    color: #c53030;
    animation: jarvisAlert 1.5s ease-in-out infinite;
}

@keyframes jarvisAlert {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Mejorar el diseño de las evaluaciones para acomodar las proyecciones */
.evaluacion-mini {
    position: relative;
    min-height: 120px;
    transition: all 0.3s ease;
}

.evaluacion-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.evaluacion-mini:hover .jarvis-projection {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

/* ===== TARJETAS DE MATERIAS COMPACTAS Y PROFESIONALES ===== */
.materia-card-compact {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px; /* Reducido de 24px */
    margin-bottom: 16px; /* Reducido de 20px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    min-height: 320px; /* Cambiar a altura mínima en lugar de fija */
    display: flex;
    flex-direction: column;
}

.materia-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.materia-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e0;
}

.materia-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-shrink: 0; /* No se encoge */
}

.materia-info {
    flex: 1;
}

.materia-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.3;
}

.materia-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.materia-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.materia-detail-item i {
    color: #667eea;
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.materia-status-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.materia-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.materia-status.status-en-curso {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.materia-status.status-aprobada {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #10b981;
}

.materia-status.status-reprobada {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.materia-nota {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
}

.materia-progress-section {
    margin-bottom: 20px;
}

.progress-container {
    margin-bottom: 12px;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.progress-text {
    color: #64748b;
    font-weight: 500;
}

.evaluaciones-count {
    color: #667eea;
    font-weight: 600;
}

.assistant-message-compact {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.4;
}

.materia-actions-compact {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto; /* Empuja los botones hacia abajo */
    padding-top: 20px;
}

.materia-actions-compact .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-width: 1px;
}

.materia-actions-compact .btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.materia-actions-compact .btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
}

.materia-actions-compact .btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.materia-actions-compact .btn-outline-secondary {
    color: #64748b;
    border-color: #cbd5e0;
}

.materia-actions-compact .btn-outline-secondary:hover {
    background: #64748b;
    color: white;
    transform: translateY(-1px);
}

.materia-actions-compact .btn-outline-danger {
    color: #ef4444;
    border-color: #fecaca;
}

.materia-actions-compact .btn-outline-danger:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-1px);
}

.evaluaciones-expandible {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

.evaluaciones-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.evaluaciones-header h4 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evaluaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evaluaciones-header {
    margin-bottom: 16px;
}

.evaluaciones-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evaluaciones-header i {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .materia-card-compact {
        padding: 16px;
    }
    
    .materia-card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .materia-status-section {
        align-items: flex-start;
        flex-direction: row;
        gap: 16px;
    }
    
    .materia-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .materia-actions-compact {
        justify-content: center;
    }
}

/* ===== INDICADOR DE CARGA ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: #6366f1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #374151;
}

/* ===== ESTILOS PARA DASHBOARD - MATERIAS EN CURSO ===== */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.empty-state small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Estado vacío para dashboard */
.empty-state-dashboard {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

.empty-state-dashboard i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-dashboard p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.empty-state-dashboard small {
    font-size: 0.85rem;
    opacity: 0.7;
}

.materia-card-dashboard {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem; /* Aumentado para más espacio */
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    height: auto; /* Altura automática según contenido */
    min-height: 140px; /* Aumentado de 120px para más espacio */
}

.materia-card-dashboard:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.materia-card-dashboard .materia-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem; /* Aumentado de 0.5rem */
    gap: 0.6rem; /* Aumentado de 0.5rem */
}

.materia-card-dashboard .materia-info {
    flex: 1;
}

.materia-card-dashboard .materia-title {
    font-size: 0.95rem; /* Reducido de 1.1rem */
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.15rem; /* Reducido de 0.25rem */
    line-height: 1.2; /* Agregado para mejor espaciado */
}

.materia-card-dashboard .materia-subtitle {
    font-size: 0.8rem; /* Reducido de 0.9rem */
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reducido de 0.5rem */
}

.materia-card-dashboard .separator {
    color: #d1d5db;
}

.materia-card-dashboard .materia-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    white-space: nowrap;
    max-width: fit-content;
    align-self: flex-end; /* Alinear a la derecha */
}

.materia-card-dashboard .status-en-curso {
    background: #f5d03c;
    color: #d97706;
}

.materia-card-dashboard .status-aprobada {
    background: #d1fae5;
    color: #059669;
}

.materia-card-dashboard .status-reprobada {
    background: #fee2e2;
    color: #dc2626;
}

.materia-card-dashboard .materia-progress-section {
    margin-top: 0.75rem; /* Aumentado de 0.5rem */
}

.materia-card-dashboard .progress-container {
    margin-bottom: 0.75rem; /* Aumentado de 0.5rem */
}

.materia-card-dashboard .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.materia-card-dashboard .progress-text {
    color: #374151;
    font-weight: 500;
}

.materia-card-dashboard .progress-required {
    color: #6366f1;
    font-weight: 600;
}

.materia-card-dashboard .materia-progress-details {
    display: flex;
    gap: 1rem; /* Reducido de 1.5rem */
    flex-wrap: wrap;
}

.materia-card-dashboard .progress-item {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reducido de 0.5rem */
    font-size: 0.75rem; /* Reducido de 0.85rem */
    color: #6b7280;
}

.materia-card-dashboard .progress-item i {
    color: #9ca3af;
    width: 14px;
}

/* ===== BANNER DE ALERTA PREMIUM - SISTEMA $100,000 ===== */
.alertas-container {
    margin-bottom: 2rem !important;
    position: relative !important;
}

.premium-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 1rem !important;
    overflow: hidden !important;
    position: relative !important;
    animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    display: block !important;
    width: 100% !important;
    min-height: 80px !important;
}

.premium-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.premium-alert-riesgo {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #dc2626 100%) !important;
    border-left: 6px solid #ffd700 !important;
}

.alert-content {
    display: flex !important;
    align-items: center !important;
    padding: 1.5rem 2rem !important;
    position: relative !important;
    z-index: 2 !important;
}

.alert-icon {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1.5rem !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    animation: pulse 2s infinite !important;
}

.alert-icon i {
    font-size: 1.8rem !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.alert-body {
    flex: 1 !important;
    color: white !important;
}

.alert-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
}

.alert-message {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    opacity: 0.95 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.alert-actions {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
}

.alert-action-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.alert-action-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.alert-close-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
}

.alert-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

.alert-progress {
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.alert-progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700) !important;
    width: 100% !important;
    animation: shimmer 2s infinite !important;
    position: relative !important;
}

.alert-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: progressShimmer 3s infinite;
}

/* Animaciones premium */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes progressShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .alert-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .alert-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .alert-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .alert-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ESTILOS PARA EVALUACIONES PRÓXIMAS DE GOOGLE CALENDAR ===== */
#proximasEvaluaciones {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    position: relative !important;
}

#proximasEvaluaciones::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%, rgba(59, 130, 246, 0.02) 100%);
    pointer-events: none;
}

#proximasEvaluaciones h3 {
    color: #1e293b !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    letter-spacing: 0.025em !important;
    position: relative !important;
    z-index: 2 !important;
}

#proximasEvaluaciones .card-body {
    position: relative !important;
    z-index: 2 !important;
}

#proximasEvaluaciones .text-muted {
    color: #64748b !important;
    font-size: 1rem !important;
    text-align: center !important;
    padding: 1.5rem !important;
    background: rgba(59, 130, 246, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.upcoming-evaluation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.upcoming-evaluation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.upcoming-evaluation-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
    border-color: #3b82f6 !important;
}

.evaluation-icon {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

.evaluation-icon i {
    color: white !important;
    font-size: 1.2rem !important;
}

.evaluation-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.evaluation-title {
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.4 !important;
}

.evaluation-date {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin-bottom: 0.25rem !important;
    font-weight: 500 !important;
}

.evaluation-date i {
    color: #3b82f6 !important;
    width: 14px !important;
}

.evaluation-location {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.evaluation-location i {
    color: #64748b !important;
    width: 12px !important;
}

.evaluation-actions {
    margin-left: 1rem !important;
}

.evaluation-actions .btn {
    padding: 0.5rem !important;
    border-radius: 8px !important;
    border: 1px solid #3b82f6 !important;
    color: #3b82f6 !important;
    background: transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
}

.evaluation-actions .btn:hover {
    background: #3b82f6 !important;
    color: white !important;
    transform: scale(1.05) !important;
}

/* Animación de entrada para evaluaciones */
.upcoming-evaluation-item {
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para evaluaciones próximas */
@media (max-width: 768px) {
    .upcoming-evaluation-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .evaluation-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .evaluation-actions {
        margin-left: 0;
        margin-top: 0.75rem;
        align-self: flex-end;
    }
}

/* ===== SISTEMA DE ANÁLISIS INTELIGENTE - $100,000 ===== */
.analisis-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-accent);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.3);
}

.analisis-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.analisis-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.analisis-filters {
    display: flex;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.analisis-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.materia-analisis-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.materia-analisis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.materia-analisis-card[data-nivel="verde"]::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.materia-analisis-card[data-nivel="amarillo"]::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.materia-analisis-card[data-nivel="naranja"]::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.materia-analisis-card[data-nivel="rojo"]::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.materia-analisis-card[data-nivel="negro"]::before {
    background: linear-gradient(90deg, #1f2937, #111827);
}

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

.analisis-header-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.materia-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.materia-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.materia-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nivel-alerta {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.analisis-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.analisis-proyeccion,
.analisis-recomendaciones,
.analisis-detalles {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.analisis-proyeccion h4,
.analisis-recomendaciones h4,
.analisis-detalles h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proyeccion-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.proyeccion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.proyeccion-item .label {
    font-weight: 500;
    color: #374151;
}

.proyeccion-item .value {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.proyeccion-item .value.normal {
    background: #d1fae5;
    color: #065f46;
}

.proyeccion-item .value.riesgo {
    background: #fef3c7;
    color: #92400e;
}

.proyeccion-item .value.critica {
    background: #fee2e2;
    color: #991b1b;
}

.recomendaciones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recomendacion-item {
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid;
    background: white;
    transition: all 0.3s ease;
}

.recomendacion-item.emergencia {
    border-left-color: #1f2937;
    background: #f9fafb;
}

.recomendacion-item.critico {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.recomendacion-item.riesgo {
    border-left-color: #f97316;
    background: #fff7ed;
}

.recomendacion-item.atencion {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.recomendacion-item.excelente {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.recomendacion-item.evaluaciones {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.recomendacion-item.opcional {
    border-left-color: #8b5cf6;
    background: #faf5ff;
}

.recomendacion-item.tendencia {
    border-left-color: #06b6d4;
    background: #f0fdfa;
}

.recomendacion-mensaje {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.recomendacion-accion {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.detalles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detalle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.detalle-label {
    font-weight: 500;
    color: #374151;
}

.detalle-value {
    font-weight: 600;
    color: #1f2937;
}

.analisis-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.analisis-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.analisis-empty h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.analisis-empty p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive para análisis */
@media (max-width: 768px) {
    .analisis-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .analisis-container {
        grid-template-columns: 1fr;
    }
    
    .analisis-header-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .analisis-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detalles-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SISTEMA INTEGRADO DE EVALUACIONES - ECOSISTEMA UNIFICADO ===== */
.evaluacion-mini.critica {
    border: 2px solid #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
    animation: pulse-critica 2s infinite !important;
}

.evaluacion-mini.opcional {
    border: 2px solid #10b981 !important;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.jarvis-projection {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.jarvis-projection.excelente {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    color: #065f46;
}

.jarvis-projection.bajo {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
    color: #991b1b;
}

.jarvis-projection.opcional {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
    color: #1e40af;
}

.jarvis-projection.critica {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
    color: #991b1b;
    animation: pulse-critica 1.5s infinite;
}

.jarvis-projection.facil {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    color: #065f46;
}

.jarvis-projection.esfuerzo {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #92400e;
}

.jarvis-projection.dificil {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border-color: #f97316;
    color: #9a3412;
}

.jarvis-projection.imposible {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    border-color: #ef4444;
    color: #991b1b;
    animation: pulse-imposible 1s infinite;
}

.jarvis-detalle {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    opacity: 0.8;
    font-style: italic;
}

.evaluacion-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.evaluacion-badge.critica {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulse-badge 2s infinite;
}

.evaluacion-badge.opcional {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

@keyframes pulse-critica {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes pulse-imposible {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mejorar la visualización de las evaluaciones con el nuevo sistema */
.evaluacion-mini {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.evaluacion-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.evaluacion-mini.critica:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

.evaluacion-mini.opcional:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ===== ESTILOS PARA NOTAS BAJAS (SOBRESCRIBIR ESTILOS BASE) ===== */
.evaluacion-mini.completada.nota-baja {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    border-color: #f44336 !important;
    color: #c62828 !important;
}

.evaluacion-mini.completada.nota-baja::before {
    background: #d32f2f !important;
}

.evaluacion-mini.completada.nota-baja .evaluacion-nota {
    color: #d32f2f !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
}

.evaluacion-mini.completada.nota-baja .evaluacion-tipo {
    color: #c62828 !important;
    font-weight: 600 !important;
}

.evaluacion-mini.completada.nota-baja .evaluacion-peso {
    color: #c62828 !important;
    font-weight: 600 !important;
}

.evaluacion-mini.completada.nota-baja .evaluacion-status {
    color: #c62828 !important;
}

.evaluacion-mini.completada.nota-baja .evaluacion-status i {
    color: #d32f2f !important;
}

/* ===== TARJETAS DE MATERIAS COMPACTAS Y PROFESIONALES ===== */
.materia-card-compact {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px; /* Reducido de 24px */
    margin-bottom: 16px; /* Reducido de 20px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    min-height: 320px; /* Cambiar a altura mínima en lugar de fija */
    display: flex;
    flex-direction: column;
}

.materia-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.materia-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-shrink: 0; /* No se encoge */
}

.materia-info {
    flex: 1;
}

.materia-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.2;
}

.materia-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.materia-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.materia-detail-item i {
    color: #6366f1;
    font-size: 0.875rem;
}

.materia-status-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.materia-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.materia-status.status-en-curso {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.materia-status.status-aprobada {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #10b981;
}

.materia-status.status-reprobada {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.materia-nota {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.materia-progress-section {
    margin-bottom: 20px;
}

.progress-container {
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill.nota-baja {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.progress-text {
    color: #64748b;
    font-weight: 500;
}

.evaluaciones-count {
    color: #6366f1;
    font-weight: 600;
}

.assistant-message-compact {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.875rem;
    color: #4c1d95;
    font-weight: 500;
    text-align: center;
}

.materia-actions-compact {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.materia-actions-compact .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.materia-actions-compact .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.evaluaciones-expandible {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        margin-top: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 16px;
        margin-top: 16px;
    }
}

.evaluaciones-header {
    margin-bottom: 16px;
}

.evaluaciones-header h4 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evaluaciones-header i {
    color: #6366f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .materia-card-compact {
        padding: 16px;
    }
    
    .materia-card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .materia-status-section {
        align-items: flex-start;
        text-align: left;
    }
    
    .materia-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .materia-actions-compact {
        justify-content: center;
    }
}
