body {
    font-size: 1.05rem;
    background-color: #1C1C1D
}

.sidebar-content {
    background: #252728;
    backdrop-filter: blur(10px);
    color: white;
    height: 100vh;
    width: 260px;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .sidebar-content .nav-link {
        color: white;
        padding-left: 1.2rem;
    }

        .sidebar-content .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

    .sidebar-content .submenu {
        padding-left: 1.5rem;
    }

.user-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .user-info img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
    }

.logout-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
}

.content {
    margin-left: 260px;
    padding: 2rem;
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
    }

    .desktop-sidebar {
        display: none;
    }

    .mobile-toggle {
        display: inline-block;
    }
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }
}







/* Custom placeholder color for dark inputs */
.input-custom-placeholder::placeholder {
    color: #cccccc !important; /* Light grey */
    opacity: 1; /* Ensures full visibility */
}

/* For older WebKit browsers (Chrome, Safari) */
.input-custom-placeholder::-webkit-input-placeholder {
    color: #cccccc !important;
    opacity: 1;
}

/* For Mozilla Firefox */
.input-custom-placeholder::-moz-placeholder {
    color: #cccccc !important;
    opacity: 1;
}

/* For Internet Explorer */
.input-custom-placeholder:-ms-input-placeholder {
    color: #cccccc !important;
    opacity: 1;
}



/* Custom styles for the navigation pills */
.nav-pills .nav-link {
    color: #cccccc; /* Un gris claro para el texto de los tabs inactivos */
    background-color: transparent; /* Fondo transparente por defecto */
    border: 1px solid transparent; /* Borde transparente por defecto */
    transition: all 0.3s ease; /* Transición suave para los cambios de color */
}

    .nav-pills .nav-link:hover {
        color: #ffffff; /* Texto blanco al pasar el ratón */
        background-color: rgba(31, 55, 96, 0.7); /* Color 1f3760 con un poco de transparencia para el hover */
        border-color: #1f3760; /* Borde del mismo color */
    }

    .nav-pills .nav-link.active {
        color: #ffffff; /* Texto blanco para el tab activo */
        background-color: #1f3760 !important; /* El color principal #1f3760 para el tab activo */
        border-color: #1f3760 !important; /* Borde del mismo color para el tab activo */
    }




/* --- NUEVAS REGLAS GLOBALES PARA INPUTS, TEXTAREAS Y SELECTS --- */

/* Fondo oscuro y borde para TODOS los inputs, textareas y selects */
/* Esto reemplaza los estilos en línea y la dependencia de input-custom-placeholder */
input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    background-color: #333334 !important;
    color: #ffffff !important; /* Asegura que el texto ingresado sea blanco */
    border-color: #6c757d !important; /* color de 'border-secondary' */
}

    /* Color de letra blanco para TODOS los placeholders */
    input::placeholder,
    textarea::placeholder,
    select::placeholder {
        color: #ffffff !important; /* ¡Ahora blanco para todos! */
        opacity: 1; /* Asegura visibilidad completa */
    }

    /* Para navegadores antiguos */
    input::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder,
    select::-webkit-input-placeholder {
        color: #ffffff !important;
        opacity: 1;
    }

    input::-moz-placeholder,
    textarea::-moz-placeholder,
    select::-moz-placeholder {
        color: #ffffff !important;
        opacity: 1;
    }

    input:-ms-input-placeholder,
    textarea:-ms-input-placeholder,
    select:-ms-input-placeholder {
        color: #ffffff !important;
        opacity: 1;
    }

/* --- REGLAS EXISTENTES (REFORZADAS) para bootstrap-table --- */
/* Aseguran el tamaño pequeño para inputs, selects y botones de BT */

/* Todos los inputs y selects dentro del contenedor de bootstrap-table (mantienen tamaño sm) */
.bootstrap-table input.form-control,
.bootstrap-table select.form-control,
.bootstrap-table .fixed-table-toolbar .search input,
.bootstrap-table .filter-control input,
.bootstrap-table .filter-control select,
.bootstrap-table .page-list .dropdown-menu .dropdown-item {
    height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.2rem !important;
    line-height: 1.5 !important;
    min-width: unset !important;
}

/* Botones de la barra de herramientas de bootstrap-table (refresh, toggle, columns) */
.bootstrap-table .fixed-table-toolbar .btn {
    height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.2rem !important;
    line-height: 1.5 !important;
}

/* Botones de paginación de bootstrap-table */
.bootstrap-table .pagination .page-item .page-link {
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    min-width: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.2rem !important;
    line-height: 1.5 !important;
}


table {
    table-layout: auto;
    width: 100%;
}

    table th,
    table td {
        white-space: nowrap;
        text-align: center;
        vertical-align: middle;
    }

    table .btn-icon {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }



.form-select.custom-dark {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 0;
}






/* Selector visible */
.select2-container--default .select2-selection--single {
    background-color: #2c2c2c;
    border-color: #444;
    color: #fff;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #fff;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        top: 2px;
    }

/* Dropdown */
.select2-container--default .select2-dropdown {
    background-color: #2c2c2c;
    border-color: #444;
}

.select2-container--default .select2-results__option {
    color: #fff;
    background-color: #2c2c2c;
}

/* Opción seleccionada */
.select2-container--default .select2-results__option--selected {
    background-color: #333;
    color: #fff;
}

/* Hover */
.select2-container--default .select2-results__option--highlighted {
    background-color: #444;
    color: #fff;
}



/* Intento de estilizar los elementos de opción dentro de un select */
select option {
    background-color: #1b1c1d; /* Fondo negro */
    color: white; /* Color de texto blanco para contraste */
}

/* Para navegadores que permiten estilizar el select cuando está abierto (menos común) */
select:focus,
select:active {
    background-color: #1b1c1d; /* Esto estiliza el select mismo, no el desplegable */
    color: white;
}




.dropdown-menu {
    background-color: #1e1e1e !important;
    color: #fff !important;
    border-color: #444;
}

    .dropdown-menu .dropdown-item {
        color: #fff !important;
    }

        .dropdown-menu .dropdown-item:hover,
        .dropdown-menu .dropdown-item:focus,
        .dropdown-menu .dropdown-item.active {
            background-color: #343a40 !important;
            color: #fff !important;
        }







/* Modal limpio */
#modalExamen .modal-content {
    box-shadow: none;
    border-radius: .5rem;
    background: #fff;
}

#modalExamen .modal-body {
    padding: 0;
}

/* Si alguien imprime con Ctrl+P la página (no recomendado), oculta el resto */
@media print {
    body {
        background: #fff !important;
    }

    .modal-backdrop, .navbar, footer, .btn, .btn-close {
        display: none !important;
    }

    #modalExamen .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }

    #modalExamen .modal-content {
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}

/* (opcional) evita scrollbars en el iframe al mostrar */
#printFrame {
    background: #fff;
}





