
/* Deshabilitar la selección de texto */
.no-select {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

/* Deshabilitar el arrastre de elementos */
.no-drag {
    -webkit-user-drag: none;
    user-drag: none;
}

body, html {
    height: 100%; /* Establece la altura del documento completo */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.container-fluid, .row {
    height: 100%; /* Asegúrate de que estos elementos llenen todo el espacio disponible */
}

.form-label {
    color: #161616;
    font-size: 1rem; /* Tamaño base para el texto de las etiquetas de formulario */
}

h4 {
    font-size: 1.5rem; /* Tamaño base para el texto de los encabezados h4 */
    color: #161616;
}

nav, footer {
    flex-shrink: 0; /* No permite que nav y footer se reduzcan */
}

main {
    flex-grow: 1; /* Permite que main ocupe el espacio restante */
    overflow-y: auto; /* Permite desplazamiento dentro de main si el contenido es demasiado largo */
    display: flex;
    flex-direction: column;
}

footer {
    box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
}

/* Structure using flexbox */
body {
    display: flex;
    flex-direction: column; /* Stack main content and footer */
}

*, *:before, *:after {
    box-sizing: border-box;
}

#logoutButton {
    font-size: 1.575rem;
    color: var(--secondary-color);
    border-radius: .5rem;
}

    /* Estilo del botón al pasar el cursor sobre él */
    #logoutButton:hover {
        background-color: #EBEBEB;
        color: var(--tertiary-color);
    }

#settingsButton {
    font-size: 1.475rem;
    margin-left: 3px;
    color: #181818;
    border-radius: .5rem;
}

    /* Estilo del botón al pasar el cursor sobre él */
    #settingsButton:hover {
        background-color: #EBEBEB;
        color: #181818;
    }

.menu-toggle-container {
    position: absolute; /* Posicionamiento absoluto */
    top: 50%; /* Alineado verticalmente al centro */
    transform: translate(-100%, -50%); /* Centrado con respecto a la esquina superior del sidebar */
    z-index: 999; /* Asegurarse de que el botón esté por encima de otros elementos */
}

/* Botón de alternar el menú con ajustes para cuando el sidebar esté colapsado o no */
.toggle-button {
    background: #343a40; /* Fondo del botón */
    color: white; /* Color del texto/icono */
    border: none; /* Sin bordes */
    padding: 0.5rem 1rem; /* Padding del botón */
    border-radius: 0.25rem; /* Bordes redondeados */
    font-size: 1.25rem; /* Tamaño del texto/icono */
    transition: all 0.3s ease; /* Transición suave para todos los cambios */
}

.navbar-brand {
    display: flex; /* Usa flexbox para alinear el contenido */
    font-size: 1.2rem;
    margin-right: 0px;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
}

    .navbar-brand strong {
        margin-right: 5px; /* Ajusta el valor según sea necesario */
    }

.navbar-perfile {
    font-size: 1rem;
}

.navbar-logos {
    display: flex; /* Usa flexbox para alinear el contenido */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    width: 100%; /* Asegura que ocupa todo el ancho del contenedor */
    margin-bottom: 1rem;
}

#sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
    max-height: 100%;
    overflow-y: auto; /* Permite el desplazamiento vertical */
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

    #sidebar.collapsed {
        width: 0; /* Colapsa el sidebar completamente */
        padding: 0; /* Elimina el padding para evitar cualquier desplazamiento innecesario */
    }

    #sidebar .content {
        display: block;
        transition: opacity 0.3s ease; /* Transición de opacidad */
        opacity: 1; /* El contenido es visible */
    }

    #sidebar.collapsed .content {
        display: none; /* Oculta el contenido cuando está colapsado */
    }

#mainContent.expanded {
    margin-left: 0; /* Ajusta el margen izquierdo cuando el sidebar está colapsado */
    transition: margin-left 0.3s ease; /* Transición suave para el margen */
}

#mainContent {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* Añadido para el posicionamiento del pseudo-elemento */
    background-image: none; /* Removemos la imagen de aquí */
    flex-grow: 1;
    overflow-y: hidden;
}

#sidebar.collapsed + #mainContent #sidebarToggle {
    transform: rotate(180deg); /* Gira el botón cuando el sidebar está colapsado */
}

#sidebar:not(.collapsed) + .menu-toggle-container .toggle-button {
    /* Ajustar la posición del botón cuando el sidebar está desplegado */
    left: calc(100% - 0.5rem); /* O la anchura exacta del sidebar */
}


.button-container {
    display: flex;
    justify-content: flex-start; /* Alinea los botones a la derecha */
    align-items: center; /* Centra los botones verticalmente */
    gap: 10px; /* Espacio entre los botones */
}

.btn-sm {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-size: 1rem;
}

    /* Estilo del botón al pasar el cursor sobre él */
    .btn-sm:hover {
        background-color: var(--tertiary-color);
        border-color: var(--tertiary-color);
    }

.btn-ssm {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .4rem;
}

    .btn-ssm:hover {
        background-color: var(--tertiary-color);
        border-color: var(--tertiary-color);
    }

.btn-sssm {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .4rem;
}

    .btn-sssm:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.btn-ssssm {
    background-color: #101010;
    border-color: #101010;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .4rem;
}

    .btn-ssssm:hover {
        background-color: #1c1c1c;
        border-color: #1c1c1c;
    }
.btn-log {
    padding: .4rem .5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.config-container {
    font-size: 1.85vh;
    padding-bottom: 0.93vh;
    padding-top: 0.93vh;
}

.card-header {
    font-weight: bold;
}

.custom-control-label {
    display: block;
    margin-top: 0.5rem;
}

.custom-radio .custom-control-input:checked~.custom-control-label {
    font-weight: bold;
}

.custom-radio .custom-control-input:checked~.custom-control-label::before, .custom-radio .custom-control-input:checked~.custom-control-label::after {
    background-color: #2A22F0;
    border-radius: 50%;
}

.custom-radio .custom-control-label::before, .custom-radio .custom-control-label::after {
    top: 0.65vh;
    height: 1.5vh;
    width: 1.5vh;
}

.heading {
    color: #2A22F0;
    font-family: 'Segoe UI Light', arial, sans-serif;
    font-size: 3.7vh;
}

.overlay {
    background-color: #FCFCFC;
    bottom: 0;
    display: block;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 2;
}

.report-container {
    box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
    background-color: #EAEAEA;
    height: 100%;
    padding: 0;
    visibility: hidden;
}

.report-display-text {
    display: flex;
    flex-direction: row; /* Alinea el icono y el texto horizontalmente */
    align-items: center;
    justify-content: center;
    position: absolute;
    color: #6E6E6E;
    font: 1.1rem "segoe ui light", arial, sans-serif;
    left: 50%;
    margin: auto;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    background-color: #ffffffcc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.3s ease;
    visibility: visible; /* Hide initially */
    opacity: 1;
    max-width: 80%;
    pointer-events: none;
    user-select: none;
}
    .report-display-text i {
        margin-right: 15px; /* Espacio entre el icono y el texto */
        margin-left: 10px;
        font-size: 1.8rem; /* Tamaño del icono */
        color: #333; /* Color del icono */
    }

    .report-display-text::after {
        content: " ";
        position: absolute;
        bottom: 100%; /* At the top of the tooltip */
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent #ffffff transparent;
    }

.report-wrapper {
    flex-grow: 1; /* Permite que el contenedor de reportes ocupe el espacio restante */
    min-height: 0; /* Permite que el contenedor de reportes se reduzca cuando sea necesario */
    padding: 0;
    position: relative;
}

.dataset-container {
    box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
    background-color: #EAEAEA;
    height: 100%;
    padding: 0;
    visibility: hidden;
}

.dataset-display-text {
    display: flex;
    flex-direction: row; /* Alinea el icono y el texto horizontalmente */
    align-items: center;
    justify-content: center;
    position: absolute;
    color: #6E6E6E;
    font: 1.1rem "segoe ui light", arial, sans-serif;
    left: 50%;
    margin: auto;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    background-color: #ffffffcc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.3s ease;
    visibility: visible; /* Hide initially */
    opacity: 1;
    max-width: 80%;
    pointer-events: none;
    user-select: none;
}

.dataset-display-text i {
    margin-right: 15px; /* Espacio entre el icono y el texto */
    margin-left: 10px;
    font-size: 1.8rem; /* Tamaño del icono */
    color: #333; /* Color del icono */
}

.dataset-display-text::after {
    content: " ";
    position: absolute;
    bottom: 100%; /* At the top of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.dataset-wrapper {
    flex-grow: 1; /* Permite que el contenedor de reportes ocupe el espacio restante */
    min-height: 0; /* Permite que el contenedor de reportes se reduzca cuando sea necesario */
    padding: 0;
    position: relative;
}

.button-row {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #f8f9fa;
    flex-shrink: 0; /* Evita que la fila de botones se reduzca */
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

#dummybutton {
    visibility: hidden;
}

.select-list {
    align-self: flex-end;
    border-radius: 6.17vh;
    border-color: #D3D3D3;
    font-size: 1.48vh;
    height: 3.61vh;
    padding: 0.46vh;
    padding-left: 0.92vh;
}

.select-list:focus {
    outline: none;
}

.sign-in {
    left: 50%;
    font-size: 2.28vh;
    top: 65%;
    transform: translate(-50%, -35%);
    -ms-transform: translate(-50%, -35%);
}

.signin-container {
    height: 27vh;
    left: 50%;
    padding: 4.5vh;
    position: relative;
    top: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    width: 70vh;
}

.signin-container>p {
    color: #2A22F0;
    font-family: 'Segoe UI Light', arial, sans-serif;
    font-size: 5vh;
    text-align: center;
}

.spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8%;
    transform: translate(-50%, -50%);
}

.user-info {
    color: #2C2C2C;
    font-family: 'Segoe UI', arial, sans-serif;
    font-size: 1.85vh;
    padding-top: 2.31vh;
    text-align: right;
}

body {
    background: #FCFCFC;
    opacity: 1;
}

.bg-custom {
    background-color: var(--primary-color) !important; /* El !important asegura que este estilo tenga prioridad */
}

button {
    position: static;
    background-color: #2A22F0;
    border: none;
    border-radius: 3.7vh;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 1.39vh;
    font-family: 'Segoe UI Semibold', arial, sans-serif;
    padding: 0.93vh 3.24vh;
}

button:disabled {
    background-color: #5C5C5F;
    cursor: default;
}

button:focus {
    outline: none;
}

main {
    flex-grow: 1; /* Permite que main ocupe el espacio restante */
    overflow-y: auto; /* Permite desplazamiento dentro de main si el contenido es demasiado largo */
    display: flex;
    flex-direction: column;
    height: calc(100% - 56px); /* Ajusta la altura de main para excluir la altura del footer */
}

iframe {
    border: none;
}

.colored-bg {
    background-color: #EAEAEA;
}

.transparent-bg {
    background-color: transparent;
}

nav {
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Sombra para el nav */
}

.navbar-logo {
    max-width: 100px; /* Ajusta este valor según el tamaño deseado del logo */
    height: auto; /* Mantiene la proporción del logo */
    margin: 0 auto; /* Centra el logo horizontalmente */
    margin-top: 20px;
    display: block;
    transition: transform 0.3s ease;
}

    .navbar-logo:hover {
        transform: scale(1.1);
    }

.navbar-profile-icon {
    height: 34px; /* Adjust the size as needed */
    width: auto;
    margin-right: 10px; /* Adjust the space between the icon and the text */
    transition: transform 0.3s ease;
}

    .navbar-profile-icon:hover {
        transform: scale(1.1);
    }

/* Align the text and icon vertically */
.btn {
    display: inline-flex;
    align-items: center;
}

.text-center {
    text-align: center !important;
    color: white;
}

.title-center {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center !important;
    color: #161616;
}

.text-custom .spinner-border {
    color: var(--primary-color); /* Puedes poner el código de color que prefieras */
}

/* Color de fondo del botón de radio cuando está seleccionado */
.btn-check:checked + label.btn-outline-secondary {
    background-color: var(--primary-color);
    color: white; /* Cambia el color del texto a blanco cuando está seleccionado */
}

/* Color del texto del botón de radio cuando está seleccionado */
.btn-check:checked + label.btn-outline-secondary {
    color: white; /* Cambia el color del texto a blanco cuando está seleccionado */
}

/* Elimina padding y border de los elementos del acordeón */
.accordion-item,
.card,
.card-body {
    border: none;
    padding: 0;
}

/* Asegúrate de que el menú de acordeón ocupe todo el ancho */
.accordion,
.card,
.card-body {
    width: 100%;
}

/* Margen inferior al botón "Panel Admin" */
#addUserButton {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

/* Nivel 1: Descriptions */
.accordion-button.level-1 {
    background-color: #fcfcfc;
    color: #1f2020;
    display: flex;
    align-items: center;
    width: 100%; /* Asegúrate de que ocupa el ancho completo */
    transition: background-color 0.3s ease;
    font-size: 1rem;
    padding: 15px;
    height: auto;
}

    .accordion-button.level-1:hover {
        background-color: #f2f1f1; /* Color de fondo al pasar el ratón */
    }

/* Nivel 2: Workspaces */
.accordion-button.level-2 {
    background-color: #fcfcfc;
    color: black;
    border: none;
    padding-left: 28px;
    box-shadow: none;
    width: 100%; /* Ajusta el ancho para tener en cuenta el margen izquierdo */
    transition: background-color 0.3s ease;
    font-size: 0.95rem;
    padding: 15px;
    height: auto;
}

    .accordion-button.level-2:hover {
        background-color: #f2f1f1; /* Color de fondo al pasar el ratón */
    }

/* Nivel 3: Reports */
.nav-link.level-3 {
    background-color: #fcfcfc;
    color: black;
    border: none;
    margin-left: 10px;
    box-shadow: none;
    width: 100%;
    font-weight: normal;
    font-size: 1rem;
    padding-left: 41px;
    display: block;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: left; /* Alineación del texto a la izquierda */
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 15px;
    height: auto;
}

    .nav-link.level-3:hover {
        background-color: #f2f1f1; /* Color de fondo al pasar el ratón */
    }

.modal-header.bg-custom {
    background-color: #4A148C; /* Cambia el color de fondo según tu preferencia */
}

.modal-header .close {
    font-size: 1.2rem;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    font-size: 1rem;
    /* padding: var(--bs-modal-padding); */
}
.modal-title {
    margin-top: 5px;
    font-weight: bold;
    font-size: 1rem;
}

.form-group label {
    font-weight: bold;
    font-size: 1rem;
}

.form-control {
    font-size: 1rem;
}

.custom-file-group .custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 40px;
    margin-bottom: 0;
}

.custom-file-input {
    position: absolute;
    width: 100%;
    height: 40px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.custom-file-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    font-size: 0.8rem;
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    cursor: pointer;
}

    .custom-file-label::after {
        content: "Seleccionar archivo";
        display: inline-block;
        padding: 0 15px;
        line-height: 26px;
        font-weight: 500;
        color: #181818;
        background-color: #f2f2f2;
        border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    }

.custom-select-group .custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none;
}

    .custom-select::after {
        content: '\25BC'; /* Unicode character for down arrow */
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        pointer-events: none;
    }

.custom-select-wrapper::after {
    content: '\25BC'; /* Unicode character for down arrow */
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-control[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.modal-footer {
    padding: 0px;
}

.modal-footer .btn-ssm {
    border-radius: .25rem;
}

    .modal-footer .btn-danger {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

        .modal-footer .btn-danger:hover {
            background-color: var(--tertiary-color);
            border-color: var(--tertiary-color);
        }

.form-select {
    font-size: 1rem;
    padding: .375rem 1.75rem .375rem .75rem;
}

.user-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px; /* Añadido para espaciar las tarjetas */
}

.user-details {
    flex: 1;
    padding-right: 15px;
}

.user-actions {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: nowrap; /* Evita que los botones se envuelvan en varias líneas */
}

.user-name {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.user-email {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
}

.user-role {
    font-size: 0.85rem;
    color: #777;
}

.row.w-100.mt-3 {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* General styles for the input */
.search-input {
    border: 2px solid #ccc;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

    /* On focus, change the border color and add a shadow */
    .search-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
        outline: none;
    }

#report-spinner {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loader styles */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader {
    border: 16px solid #efefef;
    border-radius: 50%;
    border-top: 16px solid var(--primary-color);
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

.text-start {
    margin-left: 15px;
}

/* Estilos para el icono y la ruta del reporte */
.report-icon {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    margin-right: 10px;
}

.report-path {
    font-size: 1.2rem;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.preview-container img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    padding: 5px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Suaviza el cambio */
}

    .preview-container img:hover {
        transform: scale(1.1); /* Aumenta el tamaño en un 10% */
    }

.btn-profile {
    border-color: #c0c6cb; /* gris bootstrap por defecto */
    color: #343a40; /* texto más oscuro */
    background-color: transparent;
}

    .btn-profile:hover {
        border-color: #c0c6cb;
        background-color: #e9ecef; /* gris clarito al pasar el mouse */
        color: #343a40;
    }


/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(359deg);
    }
}

@media (max-width: 1920px) {
    .navbar-logo {
        max-width: 70px;
        margin-top: 10px;
    }

    #addUserButton {
        margin-bottom: 0.4rem;
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
    }

    #settingsButton {
        font-size: 1.2rem;
    }

    .accordion-button.level-1,
    .accordion-button.level-2,
    .nav-link.level-3,
    .search-input {
        padding: 6px;
        font-size: 1rem;
    }

    .navbar-profile-icon {
        height: 27px;
    }

    #logoutButton {
        margin-left: 0.6rem;
        font-size: 1.2rem;
    }

    .form-group label,
    .modal-body,
    .form-select,
    .user-name {
        font-size: 1rem;
    }

    .form-label {
        font-size: 1rem;
    }

    .form-control {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .modal-title,
    .modal-header .close {
        font-size: 1rem;
    }

    .btn-sm,
    .btn-ssm,
    .btn-sssm,
    .btn-ssssm,
    .user-email,
    .user-role,
    .custom-selec {
        font-size: 1rem;
    }

    .modal-header {
        font-size: 1rem;
        padding: 0.7rem
    }
}

@media (max-width: 991px) {
    .navbar-logo {
        max-width: 60px; /* Tamaño más pequeño para portátiles */
        margin-top: 10px; /* Ajusta el margen superior si es necesario */
    }
    .form-label {
        font-size: 0.95rem;
    }

    h4 {
        font-size: 1rem;
    }
    #addUserButton {
        margin-bottom: 0.4rem;
        font-size: 0.875rem;
        padding: 0.1rem 0.4rem;
    }
    #settingsButton {
        font-size: 0.975rem;
    }
    .search-input {
        font-size: 0.975rem;
    }

    .accordion-button.level-1 {
        padding: 6px;
        font-size: 0.975rem;
    }

    .accordion-button.level-2 {
        padding: 6px;
        font-size: 0.95rem;
    }

    .nav-link.level-3 {
        padding: 6px;
        font-size: 0.85rem;
    }

    .report-icon,
    .report-path {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .navbar-profile-icon {
        height: 27px;
    }
    /* Adjustments for tablets */
    .config-container,
    .button-container,
    .custom-control-label {
        font-size: 14px; /* Smaller font size for tablet devices */
    }

        .config-container .card {
            max-width: 100%;
            margin-right: 0;
            margin-bottom: 1rem;
        }

    .report-wrapper {
        height: 70%;
    }

    .add-margin {
        margin-bottom: 4px;
    }

    .user-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-details {
        margin-bottom: 10px;
    }

    .user-actions {
        flex-direction: row;
        width: 100%;
        gap: 5px;
    }

    .btn-sssm, .btn-ssm, .btn-ssssm {
        font-size: 0.85rem; /* Ajusta el tamaño de fuente para pantallas pequeñas */
    }

    .search-input {
        font-size: 0.9rem;
    }
    #logoutButton {
        font-size: 1.2rem;
    }

    .preview-container img {
        max-height: 50px;
    }

    .custom-file-label {
        font-size: 0.7rem;
        padding: 0 10px;
    }

    .text-muted {
        font-size: 0.7rem;
    }

    .alert-info {
        font-size: 0.8rem;
    }

    #loader {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        max-width: 50px; /* Tamaño más pequeño para tablets y móviles */
        margin-top: 5px; /* Ajusta el margen superior si es necesario */
    }

    /* Adjustments for tablets */
    .config-container,
    .button-container,
    .custom-control-label {
        font-size: 14px; /* Smaller font size for tablet devices */
    }

        .config-container .card {
            max-width: 100%;
            margin-right: 0;
            margin-bottom: 1rem;
        }

    .report-wrapper {
        height: 70%;
    }

    .report-icon,
    .report-path {
        font-size: 1rem;
    }

    .add-margin {
        margin-bottom: 4px;
    }

    .user-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-details {
        margin-bottom: 10px;
    }

    .user-actions {
        flex-direction: row;
        width: 100%;
        gap: 5px;
    }

    .btn-sssm, .btn-ssm, .btn-ssssm {
        font-size: 0.75rem; /* Ajusta el tamaño de fuente para pantallas pequeñas */
    }

    .search-input {
        font-size: 1rem;
    }

    .preview-container img {
        max-height: 50px;
    }

    .custom-file-label {
        font-size: 0.7rem;
        padding: 0 10px;
    }

    .text-muted {
        font-size: 0.7rem;
    }

    .alert-info {
        font-size: 0.8rem;
    }

    #loader {
        width: 70px;
        height: 70px;
    }
}
@media (max-width: 576px) {
    /* Adjustments for mobile phones */
    .menu-toggle-container,
    .button-container button,
    .select-list {
        font-size: 12px; /* Even smaller font size for mobile devices */
    }

    .dashboard-container,
    .report-container,
    .dataset-container,
    .tile-container {
        min-height: 150px; /* Smaller min-height for mobile devices */
    }

    /* Stack elements vertically on smaller screens */
    .button-container {
        flex-direction: column;
        align-items: stretch; /* Make buttons full width */
    }

    .report-icon,
    .report-path {
        font-size: 1rem;
    }

    .config-container {
        font-size: 0.9rem; /* Smaller font size for mobile devices */
    }

    .report-wrapper {
        height: 85%;
    }

    .add-margin {
        margin-bottom: 4px;
    }

    .user-card {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .user-details {
        margin-bottom: 10px;
    }

    .user-actions {
        flex-direction: row; /* Mantén los botones en una fila */
        flex-wrap: wrap; /* Permite que los botones se ajusten si es necesario */
        gap: 5px;
        width: 100%;
    }

        .user-actions button {
            flex: 1; /* Asegura que los botones ocupen el mismo ancho */
            margin-bottom: 0; /* Elimina el margen inferior */
            white-space: nowrap; /* Evita que el texto del botón se rompa en varias líneas */
        }

    .btn-sssm, .btn-ssm, .btn-ssssm {
        font-size: 0.75rem; /* Ajusta el tamaño de fuente para pantallas pequeñas */
    }

    .search-input {
        font-size: 1rem;
    }

    .preview-container img {
        max-height: 50px;
    }

    .custom-file-label {
        font-size: 0.7rem;
        padding: 0 10px;
    }
    .text-muted {
        font-size: 0.7rem;
    }

    .alert-info {
        font-size: 0.8rem;
    }

    #loader {
        width: 60px;
        height: 60px;
    }
}
