/* ✅ Contenedor Principal - Sin padding excesivo */
.student-layout {
    display: flex;
    /*gap: clamp(0.75rem, 2vw, 1.25rem);*/
    min-height: 100vh;
    padding: clamp(0.5rem, 1.5vw, 0.75rem);
}

/* ✅ Sidebar - Navegación Lateral */
.student-sidebar {
    position: sticky;
    top: clamp(0.5rem, 1.5vw, 0.75rem);
    height: fit-content;
    max-height: calc(100vh - clamp(1rem, 3vw, 1.5rem));
    overflow-y: auto;
}

.sidebar-nav {
    background: var(--bg-menu, #f8f9fa);
    padding: clamp(0.75rem, 2vw, 1.25rem);
    border-radius: 16px;
}

/* ✅ Contenido Principal - Sin padding excesivo */
.student-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow-x: clip; /* clip no crea scroll container (overflow-x: hidden crea uno y fuerza overflow-y:auto, bloqueando dropdowns) */
}

/* ✅ Header - Más compacto */
.student-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    flex-wrap: wrap;
}

/* ✅ Responsive para móviles */
@media (max-width: 768px) {
    .student-layout {
        padding: clamp(0.25rem, 1vw, 0.5rem);
        gap: clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .student-sidebar {
        max-height: calc(100vh - clamp(0.5rem, 1.5vw, 1rem));
    }

    .sidebar-nav {
        padding: clamp(0.5rem, 1.5vw, 1rem);
    }

    .student-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
}

@media (max-width: 576px) {
    .student-layout {
        padding: 0.25rem;
        gap: 0.5rem;
    }

    .student-sidebar {
        top: 0.25rem;
    }
}

/* ✅ Animación pulse para botón de matrícula */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}
