/*CSS LOGIN*/----------------------------------------------------------------------------------------------------------

/* === RESET GENERAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === FONDO DE PANTALLA CON LA IMAGEN === */
body {
    height: 100vh;
    background: url('https://laboratorioaegli.com/img/imagenprincipal.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === CONTENEDOR DEL LOGIN === */
.login-container {
    background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco con un toque de transparencia */
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

/* === TÍTULO === */
.login-container h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
}

/* === ETIQUETAS DE LOS CAMPOS === */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

/* === CAMPOS DE ENTRADA === */
input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1.8px solid #c8b79e; /* Beige */
    background-color: #fff;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus {
    border-color: #a8896d;
    outline: none;
}

/* === BOTÓN DE INGRESAR === */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #7b5e3d, #a7865e); /* Marrón elegante */
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #a7865e, #7b5e3d);
    transform: scale(1.02);
}

/* === MENSAJE DE ERROR === */
.error-msg {
    margin-top: 15px;
    color: #b30000;
    font-weight: bold;
    text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 500px) {
    .login-container {
        padding: 25px 20px;
        margin: 20px;
    }

    h2 {
        font-size: 20px;
    }

    input, button {
        font-size: 14px;
    }
}

/*CSS DASBOARD*/----------------------------------------------------------------------------------------------------------

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

/* === FONDO CON IMAGEN === */
body {
    font-family: 'Segoe UI', sans-serif;
    background: url('../img/imagenprincipal.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding-top: 120px; /* espacio para header + nav */
}

/* === HEADER / TÍTULO Y USUARIO === */
header {
    width: 100%;
    background: rgba(217, 202, 179, 0.95); /* beige */
    color: #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-container h1 {
    font-size: 20px;
    color: #5a4e3c;
}

.welcome-user {
    font-weight: bold;
    font-size: 16px;
    color: #7b5e3d;
}

/* === BOTÓN CERRAR SESIÓN === */
.logout-btn {
    background-color: #a0714d;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.logout-btn:hover {
    background-color: #7b5e3d;
}

/* === NAVEGACIÓN PRINCIPAL === */
nav {
    width: 100%;
    background: rgba(237, 231, 220, 0.95); /* beige claro */
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 10px 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #4b4234;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: #e6d8c3;
    border-radius: 6px;
}

/* === SUBMENÚ === */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fdf9f3;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
}

.submenu li a {
    padding: 10px 15px;
    font-size: 15px;
    color: #4b4234;
}

.submenu li a:hover {
    background-color: #eee0ce;
}

.dropdown:hover .submenu {
    display: block;
}

/* === RESPONSIVE NAV === */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .submenu {
        position: relative;
        width: 100%;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/*CSS REGISTRAR PACIENTE*/----------------------------------------------------------------------------------------------------------

/* === FORMULARIO REGISTRO DE PACIENTE === */

body {
    font-family: 'Segoe UI', sans-serif;
    background: url('../img/imagenprincipal.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    color: #333;
}

/* Contenedor del formulario */
.form-container {
    background-color: rgba(255, 255, 255, 0.97);
    padding: 40px 50px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Título */
.form-container h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
    color: #5a4e3c;
    text-transform: uppercase;
}

/* Etiquetas */
.form-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #7b5e3d;
    font-size: 15px;
}

/* Inputs y Selects */
.form-container input,
.form-container select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1.5px solid #d3bfa5;
    border-radius: 8px;
    background-color: #fff;
    font-size: 15px;
    transition: 0.3s ease;
}

.form-container input:focus,
.form-container select:focus {
    border-color: #a0795a;
    outline: none;
}

/* Botón Registrar */
.form-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #5B86E5, #36D1DC);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
}

.form-container button:hover {
    transform: scale(1.03);
    background: linear-gradient(to right, #36D1DC, #5B86E5);
}

/* Botón volver al dashboard */
.back-btn {
    display: block;
    margin-top: 20px;
    background-color: #e63946;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.back-btn:hover {
    background-color: #c1121f;
}

/* Responsive */
@media (max-width: 600px) {
    .form-container {
        padding: 25px;
        width: 95%;
    }

    .form-container h2 {
        font-size: 22px;
    }
}


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



/*CSS CITAS DE PACIENTES*/----------------------------------------------------------------------------------------------------------


/* --- CONTENEDOR DEL FORMULARIO / TABLA --- */
.form-container {
    background-color: #f5f0e1; /* Fondo beige */
    border-radius: 12px;
    max-width: 95%;
    margin: 80px auto;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #000; /* Texto negro */
}

/* --- TÍTULOS --- */
h2, h3, h4 {
    color: #333333;
    text-align: center;
    margin-bottom: 20px;
}

/* --- INPUTS Y SELECTS --- */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1.5px solid #c1a57b;
    border-radius: 6px;
    font-size: 15px;
    background-color: #ffffff;
    color: #000000;
}

/* --- BOTONES PRINCIPALES --- */
button, .cita-btn {
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    border: none;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover, .cita-btn:hover {
    transform: scale(1.05);
}

/* --- BOTÓN DE VOLVER --- */
.back-btn {
    background-color: #e63946;
    color: white;
    display: inline-block;
    margin-top: 20px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.back-btn:hover {
    background-color: #c1121f;
}

/* --- BOTONES EDITAR Y ELIMINAR --- */
.edit-btn {
    background-color: #f9c74f;
    color: #000;
    padding: 6px 10px;
    border-radius: 6px;
    margin-right: 5px;
    text-decoration: none;
}

.delete-btn {
    background-color: #f94144;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
}

/* --- TABLA GENERAL --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: #333;
}

th {
    background-color: #ede7dc;
    color: #000000;
}

/* --- PAGINACIÓN --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 10px;
}

.pagination-btn {
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.pagination-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #5B86E5, #36D1DC);
}

.pagination-text {
    font-size: 14px;
    font-weight: bold;
    color: #5a4e3c;
}

/* --- MODAL PARA AGENDAR CITA (ESTILO BEIGE) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.5);
}

.modal-content {
    background-color: #f5f0e1; /* Beige claro */
    padding: 25px;
    margin: 5% auto;
    width: 50%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #000;
}

/* --- BOTÓN DE CERRAR (X) --- */
.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* --- TABLA DE MODAL --- */
#tablaExamenes {
    margin-top: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
}

#tablaExamenes th {
    background-color: #ede7dc;
    color: #000;
}

#tablaExamenes th, #tablaExamenes td {
    padding: 10px;
    border: 1px solid #ddd;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .modal-content {
        width: 90%;
    }

    table, th, td {
        font-size: 14px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}






/*CSS EXAMENES*/----------------------------------------------------------------------------------------------------------

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



/* CONTENEDOR DEL FORMULARIO GENERAL */
.form-container {
    background-color: #ffffffee; /* Blanco con un poco de transparencia */
    border-radius: 12px;
    max-width: 1000px;
    margin: 100px auto;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #333;
}

/* TÍTULOS */
h2, h3 {
    color: #5e503f;
    margin-bottom: 20px;
}

/* FORMULARIO */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* INPUTS Y SELECTS */
input, select, textarea {
    padding: 12px;
    border: 1.5px solid #d6ccc2;
    border-radius: 8px;
    background-color: #fff;
    font-size: 15px;
    color: #333;
}

/* BOTONES PRINCIPALES */
button {
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

button:hover {
    transform: scale(1.03);
    background: linear-gradient(to right, #5B86E5, #36D1DC);
}

/* TABLAS */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #dcd2c3;
}

th {
    background-color: #f1e8dd;
    color: #5e503f;
}

/* ACCIONES */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 20px;
    background-color: #e63946;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}

.back-btn:hover {
    background-color: #c1121f;
}

/* PAGINACIÓN */
.pagination-container {
    margin-top: 20px;
    text-align: center;
}

.pagination-container p {
    margin-bottom: 10px;
    color: #5e503f;
}

.pagination button {
    background-color: #b08968;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover {
    background-color: #7f5539;
}

.pagination .disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        width: 95%;
    }

    table, th, td {
        font-size: 14px;
    }
}


/*CSS HISTORIAL EXAMENES*/----------------------------------------------------------------------------------------------------------

/* --- CONTENEDOR HISTORIAL DE CITAS --- */

.historial-container {
    background-color: #f5f0e1;
    border-radius: 12px;
    max-width: 100%;
    margin: 80px auto;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #000;
}

/* --- TÍTULO Y TEXTOS --- */
h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* --- FORMULARIO DE BÚSQUEDA --- */
form input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1.5px solid #c1a57b;
    width: 60%;
    margin-bottom: 10px;
}

form button {
    padding: 10px 15px;
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    transform: scale(1.05);
}

/* --- TABLA --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: #000;
}

table th {
    background-color: #ede7dc;
}

/* --- PAGINACIÓN --- */
.pagination-container {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.pagination button:hover {
    background: linear-gradient(to right, #5B86E5, #36D1DC);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: default;
}

/* --- BOTÓN VOLVER --- */
.button {
    background-color: #e63946;
    color: white;
    display: inline-block;
    margin-top: 20px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.button:hover {
    background-color: #c1121f;
}

/* --- MODAL PARA EDITAR RESULTADOS --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.5);
}

.modal-content {
    background-color: #f5f0e1;
    padding: 25px;
    margin: 5% auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #000;
}

.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.guardar-btn {
    background-color: #5B86E5;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.guardar-btn:hover {
    transform: scale(1.05);
    background-color: #36D1DC;
}

a[onclick] {
    cursor: pointer;
    text-decoration: underline;
    color: #007bff;
}

/* --- MODAL OCUPANDO TODA LA VENTANA --- */
.full-screen-excel {
    width: 95%;
    height: 90%;
    max-width: none;
    max-height: none;
    overflow-y: auto;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#excelContainer {
    flex: 1;
    overflow: auto;
    margin-top: 10px;
    max-height: 400px;
}

#tablaExcel {
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 10px;
    max-height: 400px;
    overflow-y: scroll;
}

/* --- BOTONES DENTRO DEL MODAL --- */
.full-screen-excel button {
    padding: 10px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    color: white;
    transition: 0.3s;
}

.full-screen-excel button:hover {
    transform: scale(1.03);
}

/* MODAL EN PANTALLA COMPLETA PARA RESULTADOS */
.full-screen-modal {
    width: 95vw;
    height: 90vh;
    max-width: none;
    max-height: none;
    margin: 5vh auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Editor de Excel ocupa la mayor parte del modal */
#excelContainer {
    flex-grow: 1;
    overflow: auto;
    max-height: 50vh;
    margin-top: 10px;
}

/* Tabla HTML extra (cargada desde Excel) con scroll */
#tablaExcel {
    flex-grow: 1;
    overflow: auto;
    width: 100%;
    margin-top: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;

    /* Este es el ajuste importante */
    max-height: none;     /* ⛔ Elimina el límite de altura */
    height: 100%;         /* ✅ Aprovecha todo el espacio disponible */
}

#tablaExcel table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}


/* Botones dentro del modal */
.full-screen-modal button {
    padding: 10px 15px;
    margin-top: 10px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    color: white;
    transition: 0.3s;
}

.full-screen-modal button:hover {
    transform: scale(1.05);
}

/* Encabezado */
.full-screen-modal h2 {
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

/* Botón cerrar */
.full-screen-modal .close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.full-screen-modal .close:hover {
    color: #000;
}

#excelContainer {
    display: none !important;
}

#pdfContenido table {
    font-size: 11px;
    width: 100%;
    border-collapse: collapse;
}

#pdfContenido table td, #pdfContenido table th {
    border: 1px solid #999;
    padding: 5px;
    text-align: center;
}

/* Estilo personalizado para estados */
.estado-select {
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 1em;
    width: 120px;
    text-align: center;
}

/* Estado EN PROCESO (pendiente) */
.estado-pendiente {
    background-color: #f8d7da !important; /* Rojo claro */
    border-color: #dc3545 !important;
    color: #721c24 !important;
}

/* Estado FINALIZADO (procesar) */
.estado-finalizado {
    background-color: #d4edda !important; /* Verde claro */
    border-color: #28a745 !important;
    color: #155724 !important;
}

/* Deshabilitado */
.estado-select:disabled {
    opacity: 1;
    cursor: not-allowed;
}
/*CSS RESULTADOS*/----------------------------------------------------------------------------------------------------------

/* --- FONDO DE PANTALLA GENERAL --- */
body {
    background: url('../img/imagenprincipal.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* --- CONTENEDOR PRINCIPAL DE RESULTADOS --- */
.resultados-container {
    background-color: #ffffffee;
    padding: 30px;
    margin: 100px auto;
    width: 95%;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- TÍTULO --- */
.resultados-container h2 {
    color: #5a4e3c;
    text-align: center;
    margin-bottom: 25px;
}

/* --- TABLA --- */
.resultados-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.resultados-container th,
.resultados-container td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
}

.resultados-container th {
    background-color: #ede7dc;
    color: #333;
}

/* --- SELECT Y BOTÓN DENTRO DE LA TABLA --- */
.resultados-container select {
    padding: 8px;
    border: 1.5px solid #c1a57b;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fdfdfd;
    color: #333;
    margin-bottom: 5px;
}

.resultados-container button {
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    border: none;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.resultados-container button:hover {
    background: linear-gradient(to right, #5B86E5, #36D1DC);
    transform: scale(1.05);
}

/* --- ENLACE A PDF --- */
.resultados-container a {
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.3s;
}

.resultados-container a:hover {
    background-color: #e6e2d3;
}

/* --- BOTÓN VOLVER --- */
.resultados-container .button {
    background-color: #e63946;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 25px;
    border-radius: 8px;
}

.resultados-container .button:hover {
    background-color: #c1121f;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .resultados-container {
        padding: 20px;
        margin: 60px 10px;
    }

    .resultados-container table,
    .resultados-container th,
    .resultados-container td {
        font-size: 14px;
    }
}

/*CSS CONFIGURACION DE USUARIO*/----------------------------------------------------------------------------------------------------------


/* --- FONDO GENERAL CON IMAGEN --- */
body {
    font-family: 'Segoe UI', sans-serif;
    background: url('../img/imagenprincipal.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* --- CONTENEDOR PRINCIPAL --- */
.usuarios-container {
    background-color: #ffffffec;
    border-radius: 12px;
    max-width: 95%;
    margin: 80px auto;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --- TÍTULO Y PÁRRAFO --- */
.usuarios-container h2,
.usuarios-container p {
    color: #5a4e3c;
    text-align: center;
    margin-bottom: 15px;
}

/* --- BOTONES --- */
.button, .edit-btn, .delete-btn {
    display: inline-block;
    padding: 10px 16px;
    margin: 5px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    color: white;
}

.button {
    background: linear-gradient(to right, #ce3f3f, #dd4a06);
}

.button:hover {
    transform: scale(1.05);
}

.edit-btn {
    background-color: #f9c74f;
    color: #000;
}

.delete-btn {
    background-color: #f94144;
}

/* --- TABLA DE USUARIOS --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

th {
    background-color: #ede7dc;
    color: #5a4e3c;
}

/* --- MODALES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fffdf8;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    margin: 8% auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #5a4e3c;
    text-align: center;
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: #333;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #c1a57b;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 15px;
    background-color: #fdfdfd;
    color: #000;
}

.modal-content button {
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(to right, #36D1DC, #5B86E5);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: red;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }

    th, td {
        font-size: 14px;
    }
}
