/* General */
body {
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}



/* Ocultar sidebar en móviles */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        /* Ocupa todo el ancho en móviles */
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }
}

/* Navbar superior */
.navbar {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
}

.navbar {
    background: linear-gradient(90deg, #00747C, #202022);
}

/* Ajustar navbar cuando el sidebar está oculto */
@media (max-width: 992px) {
    .navbar {
        width: 100%;
        margin-left: 0;
    }
}

/* Contenido principal */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    height: calc(100vh - 60px);
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* Ajustar el contenido cuando el sidebar está oculto */
.main-content {
    transition: margin-left 0.3s ease-in-out;
    /* Transición suave */
}

/* Ocultar sidebar en móviles y ajustar contenido */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Botón de menú (Hamburguesa) */
.menu-toggle {
    display: none;
    position: absolute;
    left: 15px;
    top: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* Contenedor de la imagen de inicio */
.image-container {
    height: 90vh;
    /* Ocupar la altura completa */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Evita desbordes */
}

/* Imagen adaptada al tamaño de la pantalla */
.image-container img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

#sidebarMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(90deg, #00747C, #202022);
    color: white;
    z-index: 1050;
    /* Asegura que esté por encima de otros elementos */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    overflow-y: auto; /* Permite desplazamiento si hay muchas opciones */
    overflow-x: hidden; /* Evita scroll horizontal innecesario */
}

/* Agregar estilos al scroll (opcional, solo para mejorar la estética) */
#sidebarMenu::-webkit-scrollbar {
    width: 6px;
}

#sidebarMenu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#sidebarMenu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link {
    padding: 10px;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-link i {
    transition: transform 0.3s;
}

.nav-link:hover i {
    transform: scale(1.2);
}

hr {
    margin: 10px 0;
    opacity: 0.2;
}

.logo-img {
    border-radius: 50%;
    /* Hace la imagen completamente redonda */
    overflow: hidden;
    /* Asegura que los bordes no sobresalgan */
}

.link-texto-perfil strong {
    transition: color 0.3s ease-in-out;
    /* Transición suave */
}

.link-texto-perfil:hover strong {
    color: #15a6b1 !important;
    /* Cambia el color a rojo al pasar el cursor */
}

.link-texto-perfil:focus strong {
    color: #15a6b1 !important;
    /* Cambia el color a rojo al pasar el cursor */
}

.card {
    position: relative;
    z-index: 1;
    /* Asegura que las tarjetas no sobrepasen el menú */
}

@media (max-width: 768px) {
    #calendario {
        max-width: 100%;
        overflow-x: auto;
    }

    .fc-toolbar {
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .fc-toolbar .fc-toolbar-chunk {
        flex: 1 1 100%;
        margin-bottom: 5px;
    }

    .fc-header-toolbar {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fc-button-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fc-dayGridMonth-view,
    .fc-timeGridWeek-view,
    .fc-timeGridDay-view {
        font-size: 14px;
    }

    .fc-event {
        font-size: 12px;
        padding: 2px;
    }
}
