/* Estilos generales del panel */
.admin-container {
    position: relative;
    right: -9em;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para los encabezados */
.admin-container h2 {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}

.admin-container h3 {
    margin-top: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #00289a;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

/* Estilos de la tabla */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 11px;
}

.admin-table th, .admin-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ccc;
}

.admin-table th {
    background-color: #00289a;
    color: white;
    font-weight: bold;
}

.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Estilos de los botones */
.btn {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-warning {
    background-color: #ffc107;
    color: black;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

.modal-content {
    position: relative;
    right: -8em;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-out;
}

/* Para pantallas de 300px a 399px */
@media (min-width: 300px) and (max-width: 399px) {
    .modal-content {
        right: -1em;
        width: 95%;
    }
}

/* Para pantallas de 400px a 499px */
@media (min-width: 400px) and (max-width: 499px) {
    .modal-content {
        right: -2em;
        width: 90%;
    }
}

/* Para pantallas de 500px a 599px */
@media (min-width: 500px) and (max-width: 599px) {
    .modal-content {
        max-width: 33em;
        right: 0em;
        width: 103%;
        padding: 0px;
        max-height: 51em;
    }
}

/* Para pantallas de 600px a 699px */
@media (min-width: 600px) and (max-width: 699px) {
    .modal-content {
        right: 2em;
        width: 111%;
    }
}

/* Para pantallas de 700px a 799px */
@media (min-width: 700px) and (max-width: 799px) {
    .modal-content {
        right: 0em;
        width: 100%;
    }
}

/* Para pantallas de 800px a 899px */
@media (min-width: 800px) and (max-width: 899px) {
    .modal-content {
        right: -2em;
        width: 87%;
    }
}

/* Para pantallas de 900px a 999px */
@media (min-width: 900px) and (max-width: 999px) {
    .modal-content {
        right: -7em;
        width: 65%;
    }
}

/* Para pantallas de 1000px a 1099px */
@media (min-width: 1000px) and (max-width: 1099px) {
    .modal-content {
        right: -8em;
        width: 71%;
    }
}

/* Para pantallas de 1100px a 1199px */
@media (min-width: 1100px) and (max-width: 1199px) {
    .modal-content {
        right: -9em;
        width: 55%;
    }
}

/* Para pantallas de 1200px a 1299px */
@media (min-width: 1200px) and (max-width: 1299px) {
    .modal-content {
        right: -10em;
        width: 68%;
    }
}

/* Para pantallas de 1300px a 1399px */
@media (min-width: 1300px) and (max-width: 1399px) {
    .modal-content {
        right: -11em;
        width: 60%;
    }
}

/* Para pantallas de 1400px a 1499px */
@media (min-width: 1400px) and (max-width: 1499px) {
    .modal-content {
        right: -12em;
        width: 40%;
    }
}

/* Para pantallas de 1500px a 1599px */
@media (min-width: 1500px) and (max-width: 1599px) {
    .modal-content {
        right: -13em;
        width: 60%;
    }
}

/* Para pantallas de 1600px a 1699px */
@media (min-width: 1600px) and (max-width: 1699px) {
    .modal-content {
        right: -14em;
        width: 52%;
    }
}

/* Para pantallas de 1700px a 1799px */
@media (min-width: 1700px) and (max-width: 1799px) {
    .modal-content {
        right: -15em;
        width: 25%;
    }
}

/* Para pantallas de 1800px a 1899px */
@media (min-width: 1800px) and (max-width: 1899px) {
    .modal-content {
        right: -16em;
        width: 20%;
    }
}

/* Para pantallas de 1900px a 1999px */
@media (min-width: 1900px) and (max-width: 1999px) {
    .modal-content {
        right: -17em;
        width: 15%;
    }
}

/* Para pantallas de 2000px en adelante */
@media (min-width: 2000px) {
    .modal-content {
        right: -18em;
        width: 10%;
    }
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Contenedor fijo para título y buscador */
.modal-header-fixed {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px;
    z-index: 1000;
    text-align: center;
    border-bottom: 2px solid #000;
}

/* Título de lista de usuarios */
.titulo-usuarios {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Buscador específico para usuarios */
.buscador-usuarios {
    width: 70%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #000;
    border-radius: 17px;
}

/* Cuerpo con scroll */
.modal-body-scroll {
    max-height: 400px; /* Ajusta según necesidad */
    overflow-y: auto;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(14px);
}





