body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #000000;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

h1 {
    margin: 0;
}

main {
    padding: 20px;
}

.horario {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto; /* Agregamos desplazamiento horizontal para tablas grandes */
}

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

/* Estilos para tamaños de pantalla más pequeños */
@media screen and (max-width: 768px) {
    table th, table td {
        font-size: 12px;
    }
}

/* Estilos para tamaños de pantalla aún más pequeños */
@media screen and (max-width: 480px) {
    table th, table td {
        font-size: 10px;
    }
}

/* Estilos para los botones */
.botones {
    margin-bottom: 20px;
}

.botones input[type="button"] {
    background-color: #007BFF;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#botonbuscar {
    background-color: #007BFF;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.botones input[type="button"]:hover {
    background-color: #0056b3;
}

/* Estilo específico para el botón "Guardar Cambios" */
#guardarCambios {
    background-color: #007BFF;
}

#guardarCambios:hover {
    background-color: #0056b3;
}

#actualizarPagina {
    background-color: #a9d800;
}

#actualizarPagina:hover {
    background-color: #729103;
}

/* Estilo específico para el botón "Volver atrás" */
input[type="button"][onclick="history.back()"] {
    background-color: #dc3545;
}

input[type="button"][onclick="history.back()"]:hover {
    background-color: #721a23;
}

#abrirModal {
    background-color: #28a745;
}

#abrirModal:hover {
    background-color: #218838;
}

#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#modalContent {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

#cerrarModal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
}

#modal h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

#modal label {
    margin-bottom: 5px;
    display: block;
    text-align: left;
}

#modal input[type="text"],
#modal input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#enviarDatos {
    background-color: #089e03;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#enviarDatos:hover {
    background-color: #065803;
}

#boton_Reserva_Sala {
    background-color: #0077d8;
}

.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #ccc;
  border-top: 3px solid #3085d6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}