@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    font-family: 'Poppins', sans-serif !important;

}

.wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #fafbfe;
    margin: 0;
    padding: 0;
}

/* Ajustes a la barra lateral */
#sidebar {
    position: fixed; /* Fijar la barra en la pantalla */
    top: 0; /* Alinearla en la parte superior */
    left: 0; /* Alinearla en la parte izquierda */
    width: 70px;
    min-width: 70px;
    height: 100vh; /* Altura completa de la ventana */
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #343F47;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: auto; /* Ajusta automáticamente según el contenido */
    transition: width .25s ease-in-out; /* Transición suave al cambiar el ancho */

    
}

/* Estilo para la barra expandida */
#sidebar.expand {
    width: 260px; /* Ancho cuando el sidebar está expandido */
}

/* Ajuste del contenido principal */
.main-content {
    margin-left: 70px; /* Asegura que el contenido no quede debajo de la barra */
    transition: margin-left .25s ease-in-out; /* Transición suave para el margen */
}

/* Ajuste del contenido principal cuando la barra está expandida */
.main-content.expanded {
    margin-left: 260px; /* Ajuste del margen cuando la barra está expandida */
}

/* Ajuste de la cabecera cuando la barra está expandida */
.header-home {
    
    transition: margin-left .25s ease-in-out; /* Transición suave para la cabecera */
}

.header-home.expanded {
    margin-left: 100px; /* Ajuste del margen cuando la barra está expandida */
}

/* Ajuste del contenido principal cuando la barra está expandida */
#sidebar.expand + .main-content {
    margin-left: 260px; /* Ajuste del margen cuando la barra está expandida */
}

/* Otros estilos permanecen igual */
.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
    outline: none !important;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

/* En lugar de display: none, usa visibility: hidden */
#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    visibility: hidden; /* Hace el texto invisible pero sigue ocupando espacio */
    opacity: 0; /* Asegura que el texto esté completamente transparente cuando el sidebar está cerrado */
    transition: opacity .25s ease-in-out, visibility 0s linear .25s; /* Transición suave para la opacidad */
    
}

.sidebar-nav {
    padding: 2rem 0;
    padding-top: 0;
    flex: 1; /* Hace que ocupe el espacio disponible */
    transition: opacity 0.5s ease-in-out;

}
/* Estilos específicos cuando la altura del viewport es igual o menor a 750px */
@media screen and (max-height: 755px) {
    .sidebar-nav {
        overflow-y: auto; /* Hace el scroll SOLO aquí */
        max-height: calc(115vh - 365px); /* Ajusta la altura máxima */
        overflow-x: hidden; /* Elimina cualquier desbordamiento horizontal */
    }

    /* WebKit (Chrome, Safari, Edge) */
    .sidebar-nav::-webkit-scrollbar {
        width: 5px; /* Ajusta el ancho de la barra de desplazamiento */
        height: 6px; /* Si tienes desplazamiento horizontal, ajusta el alto */
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background-color: #4A90E2; /* Color de la barra de desplazamiento */
        border-radius: 10px; /* Bordes redondeados para un aspecto más suave */
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: #6e6e6e81; /* Fondo de la barra de desplazamiento */
    }
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
    align-items: center; /* Centra el contenido verticalmente */

}

.sidebar-item a {
    text-decoration: none;
    align-items: center;
    display: flex
;
}




.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
    transition: opacity 0.5s ease-in-out;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

/* Estilo para la barra superior o navbar */
.d-flex {
    background-color: #1CA5EA;

}

.header {
    padding: 0;
    margin-top: -13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.1px solid #ccc;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    height: 55px;
}

.header .logo {
    color: #fff; /* Texto blanco */
    font-weight: bold;
    font-size: 22px;
    padding: 20px; /* Ajusta el padding para dar más espacio al logo */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Asegura que el fondo cubra toda la altura */
    margin: 0; /* Elimina márgenes */
    background-color: #1CA5EA; /* Fondo celeste */
}

.header .user-info {
    display: flex;
    align-items: center;
    margin-right: 30px;
    justify-items: end;
    
}

.header .user-nom {
    display: flex;
    align-items: center;
    margin-right: 30px;
    justify-items: end;
    font-size: 14px;
    
}

.header .user-nom i {
    margin-right: 20px;
    
}

.header .user-info img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.header .user-info span {
    font-size: 14px;
    color: #333;
}

.header .user-info .Salir{
    margin-left: 30px;
    
}

.header .user-info .Salir a {
    text-decoration: none;
}

.header .ficha {
    margin-left: 30px;
}

.header .navbar {
    margin-left: -250px;
}

/* Estilos para el contenido principal */
.main-content {
    flex: 1;
   
}

.main-content .solicitud-header h1 {
    font-size: 60px;
    color: white;
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 10PX;
    text-align: center;
}

.main-content1 {
    flex: 1;
    padding: 20px;
    background-color: #f4f4f4; /* Fondo gris para toda la sección */
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    
}

.main-content .breadcrumb{
    font-size: 0.8em;
}

.tab-menu {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
}

.tab-menu div {
    padding: 10px 20px;
    cursor: pointer;
    color: #333;
}

.tab-menu div.active {
    border-bottom: 2px solid #0056b3;
    font-weight: bold;
    color: #0056b3;
}

.tab-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tab-content table, .tab-content table th, .tab-content table td {
    border: 1px solid #ccc;
}

.tab-content table th, .tab-content table td {
    padding: 10px;
    text-align: left;
}

.sidebar .user-photo {
    display: flex;
    align-items: center;
    margin: 20px 35px;
}

.sidebar .user-photo img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    
}

/* Estilos para ocultar foto y nombre cuando el sidebar está cerrado */
#sidebar .profile-container {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease-in-out, max-height 0.4s ease-in-out;
    width: 50%;
    justify-content: center;
    align-items: center;
}

#sidebar.expand .profile-container {
    opacity: 1;
    max-height: 150px; /* Ajusta este valor según el tamaño de la imagen y el nombre */
}



/* Contenedor de la imagen de perfil */
.profile-container {
    text-align: center;
    padding: 10px; /* Ajusta el padding para centrar verticalmente */
    margin-left: 50px;
    justify-content: center;
    justify-items: center;

    
}

/* Imagen de perfil */
.profile-container img {
    width: 90px; /* Ajusta el tamaño de la imagen según sea necesario */
    height: 90px; /* Asegúrate de que la altura coincida con el ancho para una imagen circular */
    object-fit: cover; /* Evita que la imagen se corte */
    border-radius: 50%; /* Asegura que la imagen sea circular */
    display: block;
    margin: 0 auto; /* Centra horizontalmente la imagen */
}

.profile-container-big img{
    width: 0px; /* Ajusta el tamaño de la imagen según sea necesario */
    height: 0px; /* Asegúrate de que la altura coincida con el ancho para una imagen circular */
    object-fit: cover; /* Evita que la imagen se corte */
    border-radius: 20%; /* Asegura que la imagen sea circular */
    display: block;
    margin: 0 auto; /* Centra horizontalmente la imagen */
}


 /* Contenedor personalizado */
 .custom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1; /* Fondo claro */
    padding: 20px;
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); /* Sombra suave */
    width: 320px; /* Ancho del contenedor */
    margin: 50px auto; /* Centra el contenedor */
}

.custom-container .profile-picture {
    width: 140px; /* Ancho de la imagen */
    height: 140px; /* Alto de la imagen */
    border-radius: 50%; /* Hacer la imagen redonda */
    object-fit: cover; /* Asegura que la imagen no se distorsione */
    border: 4px solid #4a90e2; /* Borde azul */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra suave */
    margin-bottom: 20px;
}

/* Imagen dentro del contenedor */
.custom-container .profile-picture {
    width: 200px; /* Ancho de la imagen */
    height: 200px; /* Alto de la imagen */
    border-radius: 50%; /* Hacer la imagen redonda */
    object-fit: cover; /* Asegura que la imagen no se distorsione */
    border: 4px solid #4a90e2; /* Borde azul */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra suave */
    margin-bottom: 20px;
}

/* Información del perfil */
.custom-container .profile-info {
    text-align: center;
    color: #333;
}

.custom-container .profile-info h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    color: #2c3e50;
}

.custom-container .profile-info p {
    margin: 5px 0;
    font-size: 1.1em;
}

/* Login */
.body-login {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('../Images/stefan-grage-Y4MKctPwIrw-unsplash.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 330px;
}

.login-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.password-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.password-container input[type="password"] {
    padding-right: 40px;
    
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #3498db;
    font-size: 1.2em;
}

.login-container input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.login-container input[type="submit"]:hover {
    background-color: #2980b9;
    
}

.error-message {
    color: red;
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
    font-weight: bold;
}

/* Solicitud */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.solictud-body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


        .solicitud-header {
            background-image: url('../Images/logo_clinica.png'); /* Placeholder image */
            background-size: cover;
            background-position: center;
            height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            position: relative;
            margin-bottom: 80px;
        }

        .solicitud-header::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1;
        }

        .solicitud-header h1 {
            position: relative;
            z-index: 2;
            font-size: 3rem;
        }

        .solicitud-container-wrapper {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            max-width: 1100px;
            margin: -50px auto 0;
            padding: 20px;
            margin-bottom: 30px;
        }

        /* Box para las instrucciones */
        .solicitud-instructions {
            background-color: #e9f7fc;
            padding: 20px;
            border-radius: 10px;
            margin-right: 30px;
            width: 300px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            color: #333;
        }

        .solicitud-instructions h3 {
            color: #007bff;
            margin-bottom: 10px;
        }

        .solicitud-instructions p {
            margin-bottom: 10px;
            font-size: 1.2rem;
            
        }

        .solicitud-container {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            width: 600px;
        }

        .solicitud-container h2 {
            text-align: center;
            color: #008AC9;
            margin-bottom: 10px;
            text-transform: uppercase;
            font-weight: bold;
        }

        .solicitud-container h3 {
            text-align: center;
            margin-bottom: 30px;
        }

        .solicitud-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .solicitud-form .input-group {
            display: flex;
            align-items: center;
            margin-bottom: 0px;
        }

        .solicitud-form .input-group i {
            padding: 10px;
            background-color: #007bff;
            color: white;
            min-width: 40px;
            text-align: center;
            border-radius: 5px 0 0 5px;
            margin-bottom: 10px;
        }

        .solicitud-form input, 
        .solicitud-form textarea, 
        .solicitud-form select {
            width: 100%;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 1rem;
        }

        .solicitud-form textarea {
            height: 100px;
        }

        .solicitud-form .solicitud-submit-btn {
            background-color: #00304A;
            color: white;
            padding: 15px;
            border: none;
            border-radius: 5px;
            font-size: 1.2rem;
            cursor: pointer;
        }

        .solicitud-form .solicitud-submit-btn:hover {
            background-color: #008AC9;
        }

        .contact-info {
            display: flex;
            justify-content: space-around;
            text-align: left;
            margin-top: 20px;
        }

        .contact-info h4 {
            margin-bottom: 10px;
            font-size: 1.2rem;
            color: #008AC9;
        }

        .contact-info p {
            margin-bottom: 10px;
            font-size: 1rem;
            color: #34495e;
        }

/* Barra de progreso para archivos adjuntos */
.progress {
    display: none;
    margin-top: 10px;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: #007bff;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.6s ease;
}

/* Documentos */

.documento-body {
    font-family: 'Roboto', sans-serif;
    background-color: #f7f7f7;
}

.documento-container {
    max-width: 600px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.documento-h2 {
    color: #008AC9;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.documento-form-group label {
    font-weight: bold;
    color: #2c3e50;
}

.documento-btn-primary {
    color: white;
    background-color: #00304A;
    border-color: #00304A;
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
}

.documento-btn-primary:hover {
    background-color: #008AC9;
    border-color: #008AC9;
}

.documento-form-select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 20px;
} 


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container-versop h1 {
    text-align: center;
    color: #008AC9;
    margin-bottom: 20px;
    margin-top: 20px;
}

.container-versop h6 {
    text-align: center;
    color: #000;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* Layout de contenedores */
.soporte-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    word-wrap: break-word;
}

/* Lista de solicitudes de soporte */
.soporte-list {
    width: 35%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 600px;
}

/* Caja de solicitud de soporte */
.soporte-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.soporte-box:hover {
    background-color: #f0f0f0;
    transform: translateY(-5px); /* Elevar un poco al hacer hover */
}

.soporte-box.active {
    background-color: #d9ecf2;
    border-left: 5px solid #008AC9; /* Resaltar solicitud activa */
}

.soporte-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.soporte-content {
    margin-top: 5px;
    color: #777;
}

/* Detalles de la solicitud con imagen de fondo */
.soporte-detail {
    width: 60%;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    position: absolute;
    right: -100%;
    top: 0;
    transition: right 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    margin-top: 132px;
    margin-right: 20px;
}

.soporte-detail.active {
    right: 0;
    opacity: 1;
}

.soporte-detail .soporte-title {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
}

/* Línea divisoria debajo del título */
.soporte-detail .soporte-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    margin-top: 10px;
}

/* Separación para el contenido */
.soporte-detail .soporte-content {
    margin-top: 20px;
    font-size: 1rem;
    color: #555;
    position: relative;
}

/* Línea divisoria debajo del contenido */
.soporte-detail .soporte-content::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    margin-top: 10px;
}

.soporte-image {
    margin-top: 25px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Espacio y estilos para la imagen permanente */
.soporte-permanent-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    margin-top: 20px;
    border-top: 2px solid #ddd; /* Línea divisoria */
    padding-top: 20px;
}

.soporte-permanent-image {
    max-width: 60%;
    max-height: 100%;
    object-fit: contain;
}

/* Botones de acción para editar/eliminar */
.soporte-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.soporte-actions button {
    background-color: #008AC9;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.soporte-actions button:hover {
    background-color: #005f8c;
}

.soporte-actions button.delete {
    background-color: #e74c3c;
}

.soporte-actions button.delete:hover {
    background-color: #c0392b;
}

/* Subtítulos para cada sección */
.soporte-detail .section-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Aumentar el espaciado entre secciones */
.soporte-detail .soporte-content, 
.soporte-detail .soporte-title, 
.soporte-detail .soporte-image, 
.soporte-detail .soporte-permanent-image-container {
    margin-top: 15px;
}

/* Título del panel completo */
.panel-heading {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Estilos para la tabla */
.table-container {
            margin-top: 20px;
        }
        .table th, .table td {
            vertical-align: middle;
        }
        .filter-container {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .filter-container form {
            align-items: center;
           margin-right: 30px;
        }
        /* Estilo del panel lateral */
        .soporte-detail {
            width: 400px;
            background-color: #fff;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
            display: none;
            position: absolute;
            right: -100%;
            top: 0;
            transition: right 0.5s ease, opacity 0.5s ease;
            opacity: 0;
        }
        .soporte-detail.active {
            right: 0;
            opacity: 1;
        }
        .soporte-detail .section-title {
            font-size: 0.9rem;
            font-weight: bold;
            color: #888;
            margin-bottom: 5px;
        }

        .soporte-detail.active {
            right: 0;
            opacity: 1;
        }
        .soporte-detail .section-title {
            font-size: 0.9rem;
            font-weight: bold;
            color: #888;
            margin-bottom: 5px;
        }
             /* Estilo para la tabla */
             .table-container {
            margin: 10px;
            background-color: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            width: auto;
            height: auto;
            
        }

        .table th {
            background-color: #00304A;
            color: #fff;
            text-align: center;
            font-weight: 600;
            padding: 15px;
            border-top: none;
        }

        .table td {
            text-align: center;
            vertical-align: middle;
            padding: 12px;
            font-size: 1rem;
            font-weight: bold;
            text-overflow: ellipsis;  /* Añade puntos suspensivos (...) al final del texto que se desborda */
        }

        /* Sombra al hacer hover en las filas */
        .table-hover tbody tr:hover {
            background-color: #f9f9f9;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
            transition: all 0.3s ease;
        }

        /* Botones estilizados */
        .btn-primary {
            background-color: #00304A;
            border-color: #00304A;
            transition: background-color 0.3s ease;
        }

        .btn-primary:hover {
            background-color: #008AC9;
            border-color: #008AC9;
        }

        .btn-danger {
            background-color: #e74c3c;
            border-color: #e74c3c;
            transition: background-color 0.3s ease;
        }

        .btn-danger:hover {
            background-color: #c0392b;
            border-color: #c0392b;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .filter-container {
                flex-direction: column;
                align-items: flex-start;
            }

            .table-container {
                width: 1100px !important;
            }

            .table th, .table td {
                font-size: 0.9rem;
                padding: 8px;
            }
        }


.filter-container{
    margin-left: 10px;
}

/* Hacer el gráfico más pequeño */
#chartContainer {
    max-width: 100%; /* Ajustar el tamaño máximo del gráfico */
    margin: 0 auto;   /* Centrar el gráfico horizontalmente */
}

/* Tamaño del canvas (gráfico) */
#estadoSolicitudesChart {
    width: 100% !important; 
    height: auto !important;  /* Reducimos la altura del gráfico */
}

.estadisticas{
    max-width: 100%;
}

/* Títulos y secciones */
.titulo-home h2 {
    font-size: 1.5rem;
    margin: 20px;
}

.titulo-home p {
    font-size: 0.9rem;
    margin: 20px;
}

.titulo-home p{
    text-align: center !important;
    justify-content: center;
    display: flex;
    align-items: center;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Asegura que el texto esté sobre la imagen */
    text-align: center;
    color: white; /* Asegura que el texto sea visible */
}

.carousel-item {
    position: relative;
}

/* Oscurecer la imagen para mejorar la legibilidad del texto */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-caption h5, .carousel-caption p {
    margin-top: 20px;
}

.carousel-caption h1 {
    font-size: 2.2rem;
}


.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin: 20px;
    text-align: center;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 10px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin: 0 10px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #3f5367;
    font-size: 14px;
}

.main-content {
    display: block;
}

.footer {
    width: 100%; /* Asegura que el footer ocupe todo el ancho */
    clear: both;  /* Asegura que el footer esté debajo de todo el contenido */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.footer {
    clear: both;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1; /* El contenido principal se expande para llenar el espacio */
}



.solicitud-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px;
    margin: -50px auto 0;
    padding: 20px;
    margin-bottom: 100px;
}

/* Box para las instrucciones */
.solicitud-instructions {
    background-color: #e9f7fc;
    padding: 20px;
    border-radius: 10px;
    margin-right: 30px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.solicitud-instructions h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.solicitud-instructions p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.solicitud-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 600px;
}

.solicitud-container h2 {
    text-align: center;
    color: #008AC9;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.solicitud-container h3 {
    text-align: center;
    margin-bottom: 30px;
}

.solicitud-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.solicitud-form .input-group {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.solicitud-form .input-group i {
    padding: 10px;
    background-color: #007bff;
    color: white;
    min-width: 40px;
    text-align: center;
    border-radius: 5px 0 0 5px;
    margin-bottom: 10px;
}

.solicitud-form input, 
.solicitud-form textarea, 
.solicitud-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.solicitud-form textarea {
    height: 100px;
}

.solicitud-form .solicitud-submit-btn {
    background-color: #00304A;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.solicitud-form .solicitud-submit-btn:hover {
    background-color: #008AC9;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    text-align: left;
    margin-top: 20px;
}

.contact-info h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #008AC9;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #34495e;
}

.scroll-to-top1 {
    position: fixed;
    bottom: 20px;  /* A 20px del fondo */
    right: 20px;    /* A 20px del borde izquierdo */
    background-color: #008AC9;; /* Color de fondo del botón */
    color: white;  /* Color del texto */
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;  /* Para asegurarte de que quede por encima de otros elementos */
}

.scroll-to-top1:hover {
    background-color: #00304A; /* Cambia el color cuando se pase el mouse */
}


.sidebar-item a{
    text-decoration: none;
   }


.solicitud-submit-btn {
    background-color: #00304A;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.5s;
}

.solicitud-submit-btn:hover {
    background-color: #008AC9;
}

.main-content a{
    text-decoration: none;
  } 



#scrollToSolicitudes{
    background-color: #008AC9;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    display:block;
}

#scrollToSolicitudes:hover {
    background-color: #00304A;

}

/* Contenedor principal del menú */
.topnav {
    position: fixed; /* Hace que el menú se quede en su posición al hacer scroll */
    top: 0; /* Fija el menú en la parte superior de la pantalla */
    width: 100%; /* Asegura que el menú ocupe todo el ancho */
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    background-color: #343F47; /* Color de fondo del menú */
    overflow: hidden;
    display: none; /* Controla la visibilidad predeterminada */
}

/* Estilo inicial del menú móvil cerrado */
#mobileLinks {
    max-height: 0;
    opacity: 0;
    overflow-y: hidden; /* Ocultar el contenido mientras está cerrado */
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* Estilo cuando el menú móvil está abierto */
#mobileLinks.open {
    max-height: 400px; /* Ajusta al tamaño máximo que esperas para el menú */
    opacity: 1;
    overflow-y: auto; /* Activa el scroll si el contenido excede el max-height */
}

/* Enlaces del menú */
.topnav a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

/* Icono para abrir/cerrar el menú */
.topnav a.icon {
    background: #52c5ff;
    display: flex; /* Usamos flexbox para centrar */
    position: absolute;
    right: 0;
    top: 0;
    height: 54px; /* Ajusta la altura según sea necesario */
    width: 13%;
    font-size: 25px;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    transition: background-color 0.3s, color 0.3s;
}

/* Hover para los enlaces */
.topnav a:hover {
    background-color: #7ad3ff;
    color: rgb(255, 255, 255);
}

/* Clase activa */
.mr-active {
    background-color: #1CA5EA;
    color: white;
    font-weight: bold;
}

/* General */
.main {
    padding-top: 15px;
}

.lni lni-popup{
    margin-right: 10px;
}

/* Estilos adicionales de responsividad */
@media (max-width: 768px) {
    /* Ajuste de ancho y padding en el body */
    body {
        width: 100%;
        padding: 0;
        margin: 0;
        overflow-x: hidden; /* Evitar el desplazamiento horizontal */
        padding-top: 50px !important;
    }

    /* Ajustes del contenedor principal */
    .main, .main-content, .wrapper {
        width: 100%;
        padding: 0px !important;
        margin-left: 0px;
        padding-top: 0px !important; 
    }

    /* Sidebar responsive */
    #sidebar {
        width: 100%;
        position: relative;
        left: 0;
        top: 0;
        display: none; /* Puedes habilitar un menú desplegable para móviles */
    }
    #sidebar {
        display: none; /* Oculta el sidebar original */
    }

    .topnav {
        display: block; /* Muestra el menú móvil */
        transition: 0.5s;
    }
    .header-home{
        display:none;
    }
    .main{
        padding-top:0px;
        margin-top:0px;
    }

    .titulo-home h2{
        margin:0px; 
        margin-top: 20px;
    }
    .solicitud-container-wrapper {
        flex-direction: column; /* Cambia a diseño en columna */
        align-items: center; /* Centra los elementos */
        gap: 10px; /* Reduce el espacio entre elementos */
        padding: 15px; /* Ajusta el padding */
        width: 100% !important;
    }
    .solicitud-container{
        width: 100% !important;
    }
    .solicitud-submit-btn{
        width: 100% !important;
    }
    .solicitud-instructions{
        margin-right:  0px !important;
    }
    .container-sop{
        margin: 10px;
    }

    .estadisticas{
        display: flex;
        flex-direction: column;
    }

    .container-sop .form-select{
        width: 378px !important;
    }

    .evento-container{
        flex-direction: column;
    }
    .evento-container h3{
        margin-top: 30px;
        text-align: center !important;
        align-items: center !important ;
        justify-content: center !important;
    }

}

.notificaciones-container {
    position: relative;
    display: inline-block;
}

.campanita {
    font-size: 24px;
    cursor: pointer;
    position: relative;
}

.campanita-badge {
    position: absolute;
    top: -2px;
    right: -7px;
    background-color: red;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    padding: 0px 7px;
    display: none;
}

.notificaciones-desplegable {
    position: absolute;
    top: 45px;
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
    font-size: 1rem;

    /* Animación inicial */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Deshabilita clics cuando está oculto */
}

.notificaciones-desplegable.active {
    /* Animación al activarse */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Habilita clics cuando está visible */
}

.notificacion {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}
.notificaciones-header {
    background-color: #1ca5eab9; /* Verde para el título */
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px 5px 0 0;
}


.notificacion:last-child {
    border-bottom: none;
}

.notificacion.no-leida {
    background-color: #9fe4ff;
}

.notificacion.leida {
    background-color: #fff;
}

.fecha-con-eliminar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Asegura que se ocupe todo el ancho disponible */
}

.fecha {
    font-size: 0.9em;
    color: #888;
}

.notificacion-eliminar {
    background: none;
    border: none;
    color: red;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.notis-mob{
    display: none;
}

/* Media Query para pantallas pequeñas */
@media (max-width: 728px) {
    .notis-mob{
        display: block;
    }
    .notificaciones-desplegable {
        width: 90%;
        right: 5%;
    }
    .notificaciones-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }
    
    .campanita {
        font-size: 2rem;
        cursor: pointer;
        position: relative;
        display: block;
        
    }
    
    .campanita-badge {
        position: absolute;
        top: 0;
        right: 0;
        background-color: red;
        color: white;
        border-radius: 50%;
        padding: 4px 8px;
        font-size: 0.8rem;
        display: none;
    }
    
    .notificaciones-desplegable {
        display: none;
        position: absolute;
        bottom: 60px;
        right: -12;
        width: 400px;
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        margin-top: -600;
    }
    
    .notificaciones-desplegable.active {
        display: block;
    }
    
    .notificaciones-header {
        background-color: #f5f5f5;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        text-align: center;
    }
    
    .notificacion {
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .notificacion.no-leida {
        background-color: #fffbf2;
    }
    
    .notificacion.leida {
        background-color: #f9f9f9;
    }
    
    .fecha-con-eliminar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .fecha {
        font-size: 0.8rem;
        color: #666;
    }
    
    .notificacion-eliminar {
        background: none;
        border: none;
        color: red;
        cursor: pointer;
    }

    /* Estilo para el botón de campanita */
.campanita-btn {
    background-color: white; /* Fondo blanco */
    border: none;
    border-radius: 50%; /* Hacer el botón circular */
    width: 50px; /* Tamaño del botón */
    height: 50px; /* Tamaño del botón */
    font-size: 24px; /* Tamaño del icono */
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra suave */
}

/* Estilo de la campanita cuando hay notificaciones */
.campanita-badge {
    position: absolute;
    top: -2px;
    right: -7px;
    background-color: red;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    padding: 0px 7px;
    display: none; /* Solo mostrar cuando haya notificaciones */
}

/* Mostrar la campanita si tiene notificaciones */
.campanita-badge.show {
    display: inline-block;
}

/* Estilo del panel de notificaciones */
.notificaciones-desplegable {
    transform: translate(-50%, -50%); /* Centrado en la pantalla */
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Deshabilita clics cuando está oculto */
}

.notificaciones-desplegable.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Habilita clics cuando está visible */
}

/* Estilo de las notificaciones */
.notificacion {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.notificaciones-header {
    background-color: #1ca5eab9; /* Verde para el título */
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

    .notificaciones-container{
        display: block;
    }
}

.notificaciones-container{
    display: block;
}


.alertas-container {
    position: relative;
    display: inline-block;
}

.icono-campana {
    font-size: 24px;
    cursor: pointer;
    position: relative;
}

.icono-campana-badge {
    position: absolute;
    top: -2px;
    right: -7px;
    background-color: red;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    padding: 0px 7px;
    display: none;
}

.alertas-desplegable {
    position: absolute;
    top: 45px;
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
    font-size: 1rem;

    /* Animación inicial */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Deshabilita clics cuando está oculto */
}

.alertas-desplegable.active {
    /* Animación al activarse */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Habilita clics cuando está visible */
}

.alerta {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.alertas-header {
    background-color: #1ca5eab9; /* Verde para el título */
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.alerta:last-child {
    border-bottom: none;
}

.alerta.no-leida {
    background-color: #9fe4ff;
}

.alerta.leida {
    background-color: #fff;
}

.fecha-con-eliminar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Asegura que se ocupe todo el ancho disponible */
}

.fecha {
    font-size: 0.9em;
    color: #888;
}

.alerta-eliminar {
    background: none;
    border: none;
    color: red;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.alertas-moviles {
    display: none;
}

.alertas-container{
    display: none;
}

@media (max-width: 728px) {
    .alertas-container {
        display: block;
        position: fixed;
        bottom: 40px; /* Ajusta la distancia desde el borde inferior */
        right: 20px; /* Ajusta la distancia desde el borde derecho */
        z-index: 9999; /* Asegura que quede por encima de otros elementos */
        background-color: white; /* Fondo blanco */
        border-radius: 100px; /* Bordes redondeados */
        padding: 15px; /* Espaciado interno */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.418); /* Sombra sutil */
    }

    .alertas-desplegable {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Centra el contenedor */
        width: 80%; /* Ajusta el ancho para que sea responsive */
        max-height: 400px;
        overflow-y: auto;
        border: 1px solid #ddd;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
        z-index: 1000;
        font-size: 1rem;

        /* Animación inicial */
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none; /* Deshabilita clics cuando está oculto */
    }
    
    .alertas-desplegable.active {
        /* Animación al activarse */
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
        pointer-events: auto; /* Habilita clics cuando está visible */
    }

    .alerta.eliminando {
        opacity: 0;
        transform: translateX(100%); /* Mueve la alerta hacia la derecha mientras desaparece */
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
}

.alerta.eliminando {
    opacity: 0;
    transform: translateX(100%); /* Mueve la alerta hacia la derecha mientras desaparece */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notificacion.eliminando {
    opacity: 0;
    transform: translateX(100%); /* Mueve la notificación hacia la derecha mientras desaparece */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
