﻿/* Fondo con gradiente y formas animadas */
.dashboard-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #196343 0%, #117844 50%, #3A9468 100%);
    z-index: -1;
    overflow: hidden;
}

.shape-bg {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: floatBg 25s ease-in-out infinite;
}

.shape-bg-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(395deg, #ffffff 0%, #00ff88 100%);
    top: -250px;
    right: -250px;
}

.shape-bg-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(55deg, #00ff88 0%, #ffffff 100%);
    bottom: -200px;
    left: -200px;
    animation-delay: 8s;
}

.shape-bg-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(165deg, #ffffff 0%, #00a854 100%);
    top: 40%;
    right: 10%;
    animation-delay: 16s;
}

@keyframes floatBg {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Card Glass Base */
.card-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    animation: slideInDown 0.6s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Glass */
.header-glass {
    margin-bottom: 1.5rem;
}

.text-white-soft {
    color: rgba(255, 255, 255, 0.9);
}

.btn-logout-glass {
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

    .btn-logout-glass:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
        background: rgba(200, 35, 51, 0.95);
    }

/* Filtros Glass */
.filter-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem;
    height: 100%;
}

.form-label-glass {
    color: white;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.form-select-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .form-select-glass:focus {
        outline: none;
        border-color: #00a854;
        box-shadow: 0 0 0 4px rgba(0, 168, 84, 0.15);
        transform: translateY(-2px);
    }

/* Badges Glass */
.badge-glass {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0.25rem;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.9);
    color: #856404;
}

.badge-info {
    background: rgba(23, 162, 184, 0.9);
    color: white;
}

.badge-success {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

/* Botón Estadísticas */
.btn-stats-glass {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9) 0%, rgba(13, 202, 240, 0.9) 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-stats-glass:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(23, 162, 184, 0.5);
    }

/* Tabla Estadísticas Glass */
.stats-glass {
    animation: fadeIn 0.6s ease;
}

.stats-header {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9) 0%, rgba(13, 202, 240, 0.9) 100%);
    padding: 1.2rem;
    border-radius: 20px 20px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

.stats-body {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
}

.table-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .table-glass thead tr {
        background: rgba(11, 49, 33, 0.1);
    }

    .table-glass th {
        padding: 1rem;
        font-weight: 600;
        border-bottom: 2px solid rgba(11, 49, 33, 0.2);
    }

    .table-glass td {
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .table-glass tbody tr:hover {
        background: rgba(0, 168, 84, 0.05);
    }

.progress-glass {
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar-glass {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: width 0.6s ease;
}

.bg-success-glass {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.bg-warning-glass {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.bg-danger-glass {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.text-muted-glass {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Cards de Sesiones Glass */
.sesion-card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease;
}

    .sesion-card-glass:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Header de cards según estado */
.sesion-header-glass {
    padding: 1rem 1.2rem;
    backdrop-filter: blur(10px);
}

.bg-glass-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 152, 0, 0.9));
}

.bg-glass-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9), rgba(13, 202, 240, 0.9));
}

.bg-glass-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(32, 201, 151, 0.9));
}

.bg-glass-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(232, 62, 140, 0.9));
}

.badge-status-glass {
    background: rgba(255, 255, 255, 0.95);
    color: #0b3121;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Body del card */
.sesion-body-glass {
    padding: 1.5rem;
}

.sesion-title-glass {
    color: #0b3121;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.sesion-info-glass {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item-glass {
    display: flex;
    align-items: start;
    gap: 0.8rem;
}

    .info-item-glass i {
        color: #007c3a;
        font-size: 1.2rem;
        margin-top: 0.2rem;
    }

    .info-item-glass .text-muted-glass {
        display: block;
        font-size: 0.75rem;
        color: #6c757d;
        margin-bottom: 0.2rem;
    }

    .info-item-glass .fw-semibold {
        font-weight: 600;
        color: #212529;
        font-size: 0.9rem;
    }

.puntaje-glass {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.15));
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #155724;
}

    .puntaje-glass i {
        color: #ffc107;
        font-size: 1.2rem;
    }

/* Footer del card */
.sesion-footer-glass {
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 0.8rem;
}

.btn-action-glass {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download-glass {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-decoration: none;
}

    .btn-download-glass:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
        color: white;
    }

.btn-calificar-glass {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(32, 201, 151, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

    .btn-calificar-glass:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

/* Alert Glass */
.alert-glass {
    background: rgba(23, 162, 184, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(23, 162, 184, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: #0c5460;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

    .alert-glass i {
        font-size: 1.5rem;
    }

/* Modal Glass */
.modal-overlay-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-glass {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideInModal 0.4s ease;
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header-glass {
    background: linear-gradient(135deg, rgba(11, 49, 33, 0.95), rgba(0, 124, 58, 0.95));
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-glass {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    line-height: 1;
}

    .btn-close-glass:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.modal-body-glass {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.session-info-modal-glass {
    background: rgba(11, 49, 33, 0.05);
    border-left: 4px solid #007c3a;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .session-info-modal-glass > div {
        color: #0b3121;
        font-size: 0.95rem;
    }

.section-title-glass {
    color: #0b3121;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 2px solid rgba(0, 124, 58, 0.2);
    padding-bottom: 0.5rem;
}

.label-modal-glass {
    color: #0b3121;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

.input-modal-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(11, 49, 33, 0.15);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 120px;
    transition: all 0.3s ease;
}

    .input-modal-glass:focus {
        outline: none;
        border-color: #007c3a;
        box-shadow: 0 0 0 4px rgba(0, 124, 58, 0.1);
    }

.textarea-modal-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(11, 49, 33, 0.15);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.95rem;
    width: 100%;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .textarea-modal-glass:focus {
        outline: none;
        border-color: #007c3a;
        box-shadow: 0 0 0 4px rgba(0, 124, 58, 0.1);
    }

.total-puntaje-glass {
    background: linear-gradient(135deg, #007c3a, #00a854);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 124, 58, 0.3);
}

.select-modal-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(11, 49, 33, 0.15);
    border-radius: 10px;
    padding: 0.7rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

    .select-modal-glass:focus {
        outline: none;
        border-color: #007c3a;
        box-shadow: 0 0 0 4px rgba(0, 124, 58, 0.1);
    }

.btn-modal-glass {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-glass {
    background: rgba(108, 117, 125, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

    .btn-cancel-glass:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
        background: rgba(90, 98, 104, 0.95);
    }

.btn-save-glass {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

    .btn-save-glass:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

    .btn-save-glass:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.alert-modal-glass {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 2px solid;
}

.alert-success-glass {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
    color: #155724;
}

.alert-error-glass {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .card-glass {
        padding: 1.5rem;
    }

    .header-glass h3 {
        font-size: 1.3rem;
    }

    .filter-glass {
        margin-bottom: 1rem;
    }

    .badge-glass {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .modal-glass {
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-body-glass {
        padding: 1.5rem;
    }

    .shape-bg {
        display: none;
    }
}

@media (max-width: 576px) {
    .sesion-footer-glass {
        flex-direction: column;
    }

    .btn-action-glass {
        width: 100%;
    }
}


/* Forzar estilos del modal */
.modal-glass {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.modal-header-glass {
    background: linear-gradient(135deg, #0b3121 0%, #007c3a 100%) !important;
}

.modal-body-glass {
    background: white !important;
}

.session-info-modal-glass {
    background: rgba(11, 49, 33, 0.05) !important;
    border-left: 4px solid #007c3a !important;
}

.total-puntaje-glass {
    background: linear-gradient(135deg, #007c3a, #00a854) !important;
}

.btn-save-glass {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.btn-cancel-glass {
    background: rgba(108, 117, 125, 0.9) !important;
}


/* Mejoras Responsive Adicionales */
@media (max-width: 992px) {
    .header-glass {
        padding: 1.5rem;
    }

        .header-glass h3 {
            font-size: 1.2rem;
        }

        .header-glass h5 {
            font-size: 1rem;
        }

    .filter-glass {
        padding: 1rem;
    }

    .badge-glass {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
        margin: 0.2rem;
    }

    .btn-stats-glass {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-background {
        background: linear-gradient(135deg, #0b3121 0%, #007c3a 100%);
    }

    .header-glass {
        padding: 1rem;
    }

        .header-glass .d-flex {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }

        .header-glass .text-end {
            text-align: center !important;
        }

    .filter-glass h-100 {
        height: auto !important;
    }

    .badge-glass {
        display: inline-block;
        width: calc(50% - 0.5rem);
        text-align: center;
    }

    .sesion-card-glass {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .card-glass {
        padding: 1rem;
    }

    .header-glass h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .header-glass h5 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-logout-glass {
        width: 100%;
        padding: 0.5rem 1rem;
    }

    .filter-glass {
        padding: 0.8rem;
    }

    .form-label-glass {
        font-size: 0.85rem;
    }

    .form-select-glass {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .badge-glass {
        width: 100%;
        margin: 0.2rem 0;
        padding: 0.5rem;
    }

    .btn-stats-glass {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .sesion-card-glass {
        border-radius: 15px;
    }

    .sesion-header-glass {
        padding: 0.8rem 1rem;
    }

    .sesion-body-glass {
        padding: 1rem;
    }

    .sesion-title-glass {
        font-size: 1rem;
    }

    .modal-glass {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-header-glass {
        padding: 1rem 1.2rem;
    }

    .modal-body-glass {
        padding: 1rem;
    }

    .input-modal-glass {
        max-width: 100px;
    }

    .total-puntaje-glass {
        padding: 0.8rem;
        font-size: 1.3rem;
    }

    .btn-modal-glass {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .header-glass h3 {
        font-size: 1rem;
    }

    .btn-logout-glass {
        font-size: 0.85rem;
    }

    .sesion-info-glass {
        gap: 0.7rem;
    }

    .info-item-glass {
        gap: 0.6rem;
    }
}

/* Utilidades para responsive */
.text-center-mobile {
    text-align: left;
}

@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
}


/* Fix para selects con texto largo */
.form-select-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .form-select-glass option {
        background: white;
        color: #0b3121;
        padding: 0.5rem;
    }

/* Ajustes específicos para el filtro de estudiantes */
@media (max-width: 1200px) {
    .filter-glass .form-select-glass {
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .filter-glass {
        margin-bottom: 0.5rem;
    }

    .form-select-glass {
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .form-select-glass {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA ESTUDIANTE ===== */

/* Cards de Programar Sesión */
.programar-sesion-glass {
    /* 📝 Contenedor Programar Sesión */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto; /* ⚡ No ocupar toda la altura disponible */
    max-height: 600px; /* ⚡ Limitar altura para evitar alargado */
    min-height: 400px;
}

}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sesiones-list-glass {
    animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-header-student {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(32, 201, 151, 0.95));
    padding: 1.2rem 1.5rem;
    border-radius: 20px 20px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

.card-header-sesiones {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.95), rgba(13, 202, 240, 0.95));
    padding: 1.2rem 1.5rem;
    border-radius: 20px 20px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

.card-body-student {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
}

/* Formulario Estudiante */
.form-label-student {
    color: #0b3121;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control-student {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(11, 49, 33, 0.15);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

    .form-control-student:focus {
        outline: none;
        border-color: #28a745;
        box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
        transform: translateY(-2px);
    }

.text-muted-student {
    color: #6c757d;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.3rem;
}

/* Archivo Seleccionado */
.file-selected-glass {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #155724;
    font-weight: 500;
}

    .file-selected-glass i {
        font-size: 1.5rem;
        color: #28a745;
    }

/* Alertas Estudiante */
.alert-student {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 2px solid;
}

.alert-success-student {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
    color: #155724;
}

    .alert-success-student i {
        color: #28a745;
        font-size: 1.3rem;
    }

.alert-danger-student {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #721c24;
}

    .alert-danger-student i {
        color: #dc3545;
        font-size: 1.3rem;
    }

/* Botón Programar */
.btn-programar-glass {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

    .btn-programar-glass:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
    }

    .btn-programar-glass:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Tabla de Sesiones Estudiante */
.table-student-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .table-student-glass thead {
        background: rgba(11, 49, 33, 0.08);
    }

    .table-student-glass th {
        padding: 0.9rem;
        font-weight: 700;
        color: #0b3121;
        font-size: 0.9rem;
        border-bottom: 2px solid rgba(11, 49, 33, 0.15);
    }

    .table-student-glass td {
        padding: 0.9rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 0.9rem;
    }

.sesion-row-student {
    border-top: 3px solid #0b3121;
    transition: background 0.2s ease;
}

    .sesion-row-student:hover {
        background: rgba(40, 167, 69, 0.05);
    }

.badge-student {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #856404;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8, #0dcaf0);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

.nota-student {
    color: #28a745;
    font-size: 1.1rem;
}

/* Desglose de Calificaciones */
.desglose-row-student {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.8), rgba(225, 245, 254, 0.8));
}

.desglose-content {
    padding: 0.8rem 1rem;
    color: #004085;
}

/* Retroalimentación */
.retroalimentacion-row-student {
    background: linear-gradient(135deg, rgba(255, 249, 230, 0.9), rgba(255, 243, 205, 0.9));
}

/* ✍️ Retroalimentación (parte derecha, icono + texto) */
.retroalimentacion-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 0; /* ✨ quitar línea verde */
}

    .retroalimentacion-content i {
        font-size: 1.3rem;
        color: var(--primary-color, #198754);
    }


    .retroalimentacion-content strong {
        color: #856404;
        display: block;
        margin-bottom: 0.3rem;
    }

    .retroalimentacion-content p {
        color: #856404;
        margin-top: 0.3rem;
        line-height: 1.5;
    }

.separador-sesion-student {
    height: 12px;
    background: linear-gradient(90deg, transparent, rgba(11, 49, 33, 0.1), transparent);
}

/* Empty State */
.empty-state-glass {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

    .empty-state-glass i {
        font-size: 4rem;
        color: rgba(23, 162, 184, 0.3);
        margin-bottom: 1rem;
    }

    .empty-state-glass p {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #495057;
    }

    .empty-state-glass small {
        color: #6c757d;
    }

/* Responsive Estudiante */
@media (max-width: 992px) {
    .card-header-student,
    .card-header-sesiones {
        padding: 1rem;
    }

    .btn-programar-glass {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .card-body-student {
        padding: 1rem;
    }

    .file-selected-glass {
        flex-direction: column;
        text-align: center;
    }

    .table-student-glass {
        font-size: 0.85rem;
    }

        .table-student-glass th,
        .table-student-glass td {
            padding: 0.6rem 0.4rem;
        }

    .retroalimentacion-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .form-control-student {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .btn-programar-glass {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .empty-state-glass {
        padding: 2rem 1rem;
    }

        .empty-state-glass i {
            font-size: 3rem;
        }
}

@media (min-width: 992px) {
    .programar-sesion-glass {
        min-height: 420px;
        max-height: 550px;
    }
}

.confirmacion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    border-radius: 25px;
}

.confirmacion-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    text-align: center;
}

    .confirmacion-box h6 {
        color: #856404;
        margin-bottom: 1rem;
    }

    .confirmacion-box > div {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 1rem;
    }

.btn-confirmar-si {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-confirmar-si:hover {
        background: #c82333;
    }

.btn-confirmar-no {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-confirmar-no:hover {
        background: #5a6268;
    }