/* Estilos básicos para el panel de reservas */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

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

main {
    margin: 20px auto;
    max-width: 900px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px 8px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

th {
    background-color: #e0e0e0;
}

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

/* Contenedor para el filtro de búsqueda */
.filtro-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtro-container input[type="text"] {
    flex: 1;
    padding: 6px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Estilos para botones de acciones */
.acciones-btn {
    margin-right: 5px;
    padding: 4px 8px;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-edit {
    background-color: #1976d2;
    color: #fff;
}
.btn-edit:hover {
    background-color: #115293;
}
.btn-delete {
    background-color: #d32f2f;
    color: #fff;
}
.btn-delete:hover {
    background-color: #9a0007;
}

.status {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.status.error {
    background-color: #ffebee;
    color: #c62828;
}

.status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Estilos para el formulario de nueva reserva */
#nueva-reserva {
    margin-top: 30px;
}

#nueva-reserva h2 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.form-group {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

label {
    margin-bottom: 4px;
    font-weight: bold;
}

input[type="text"], input[type="date"] {
    padding: 6px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Estilo similar para select */
select {
    padding: 6px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

/* Estilos para el modal genérico */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.modal-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
}

.modal-btn.cancel {
    background-color: #d32f2f;
    color: #fff;
}
.modal-btn.cancel:hover {
    background-color: #9a0007;
}

.modal-btn.confirm {
    background-color: #1976d2;
    color: #fff;
}
.modal-btn.confirm:hover {
    background-color: #115293;
}

button[type="submit"] {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #003060;
}