/* Sidebar styling */
.sidebar {
    background: #343a40; /* Fondo gris oscuro */
    color: white;
    height: 100vh; /* Altura fija */
    width: 250px; /* Ancho fijo */
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Prioridad por debajo del modal */
    overflow-y: auto; /* Scroll interno si hay mucho contenido */
    transition: transform 0.3s ease, z-index 0.3s ease; /* Animación en móviles */
}

/* Evitar que el sidebar ocupe toda la pantalla cuando el modal está abierto */
.modal-open .sidebar {
    z-index: 1040 !important; /* Asegurar que quede detrás del modal */
    pointer-events: none; /* Desactivar interacciones */
    height: 100vh !important; /* Mantener altura original */
    width: 250px !important; /* Asegurar el ancho original */
    overflow-y: auto; /* Mantener scroll interno si es necesario */
}

/* Ocultar interacciones con el navbar y el sidebar mientras el modal está abierto */
.modal-open .navbar,
.modal-open .sidebar {
    pointer-events: none; /* Deshabilitar interacciones */
}

/* Ajuste del contenido principal */
.main-content {
    margin-left: 250px; /* Espaciado fijo para el sidebar */
    padding: 20px;
    transition: margin-left 0.3s ease; /* Animación suave */
    box-sizing: border-box; /* Asegurar que el padding se respete correctamente */
    width: calc(100% - 250px); /* Ajuste dinámico del ancho */
}

/* Ocultar el sidebar en pantallas pequeñas */
@media (max-width: 768px) {
    .sga-sidebar {
        display: none !important; /* Forzar ocultar el sidebar */
    }
}

/* Ocultar el navbar en pantallas grandes */
@media (min-width: 769px) {
    .sga-navbar {
        display: none !important; /* Forzar ocultar el navbar */
    }
}

/* Saludo en el sidebar */
.sidebar h2 {
    font-size: 1.2rem; /* Ajuste para no ser demasiado grande */
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    word-wrap: break-word; /* Ajuste del texto en caso de nombres largos */
}

/* Module item styles */
.module-item {
    display: flex;
    align-items: center;
    padding: 15px; /* Espaciado interno */
    font-size: 1.3rem; /* Texto un poco más grande */
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 15px; /* Separación entre elementos */
    transition: color 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
}

.module-item i {
    font-size: 1.7rem; /* Iconos más grandes */
    margin-right: 15px;
}

/* Active module styles */
.module-item.active {
    background-color: transparent;
    color: white;
}

.module-item.active i {
    color: white;
}

/* Locked module styles */
.module-item.locked {
    background-color: transparent;
    color: red;
    cursor: not-allowed;
}

.module-item.locked i {
    color: red;
}

/* Hover effect for active modules */
.module-item:hover:not(.locked) {
    background-color: #ffffff44; /* Ligero fondo translúcido */
}

/* Footer styling */
.sga-footer {
    width: 100%;
    background-color: #f1f1f1;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    z-index: 999;
}

/* Ajuste para las tarjetas de progreso */
.progress-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.progress-bar {
    height: 20px;
    border-radius: 10px;
}

/* Estilo para modales */
.modal-content {
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Modal-specific content adjustments */
.modal-open .main-content {
    margin-left: 250px; /* Mantener margen cuando el modal está abierto */
    width: calc(100% - 250px); /* Asegura que el contenido principal conserve su ancho */
}

/* Hover y transiciones generales */
button, .module-item {
    transition: all 0.3s ease-in-out;
}

/* Ajuste para pantallas pequeñas: centrado del contenido */
.container-fluid {
    padding-right: 0;
    padding-left: 0;
    margin: 0;
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho */
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}
header {
    background: #40514e; /* Color sólido */
    color: white; /* Mantiene el texto en blanco */
}
header a {
    color: white;
    text-decoration: none;
}
.main-banner {
    background: url('https://sga-test.com/img/imagen-fondo.webp') no-repeat center center/cover;
    height: 400px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.main-banner h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px #000;
}
.card:hover {
    transform: scale(1.05);
    transition: 0.3s;
}
footer {
    background-color: #006400;
    color: white;
}
@media screen and (max-width: 768px) {
    .navbar-brand svg {
        max-width: 150px;
        width: auto;
        height: auto;
    }
}