body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

#app-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

header h1 {
    color: #007bff;
    margin: 0;
}

#user-auth button, .controls button { /* Se aplica a login-btn y logout-btn */
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 5px; /* Añadido para separar un poco los botones de user-info */
}

#user-auth button:hover, .controls button:hover {
    background-color: #0056b3;
}

#user-info {
    display: flex;
    align-items: center;
}

#user-info span {
    margin-right: 10px;
}

#logout-btn {
    background-color: #dc3545;
}
#logout-btn:hover {
    background-color: #c82333;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.controls label {
    font-weight: bold;
}

.controls select, .controls input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 200px;
}

#calendar {
    margin-bottom: 30px;
}

/* FullCalendar custom styles */
.fc-event {
    cursor: pointer;
}
.fc-event-main {
    padding: 5px;
}
.fc-daygrid-event {
    font-size: 0.85em;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 25px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content h2 {
    color: #007bff;
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
.modal-content input[type="text"],
.modal-content select {
    width: calc(100% - 22px); /* Account for padding */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.modal-content small {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 15px;
}

.modal-content button#save-booking-btn { /* Más específico para el botón del modal */
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
    width: 100%;
}
.modal-content button#save-booking-btn:hover {
    background-color: #218838;
}

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

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

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Estilos para el Panel de Administrador */
#admin-panel {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#admin-panel h2 {
    color: #dc3545; /* Un color distintivo para admin */
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
#admin-panel h3 {
    margin-top: 15px;
    color: #333;
}

#registered-users-list {
    list-style: none;
    padding: 0;
}

#registered-users-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#registered-users-list li:last-child {
    border-bottom: none;
}

#registered-users-list button { /* Botón de eliminar usuario en panel admin */
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}
#registered-users-list button:hover {
    background-color: #c82333;
}

.admin-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #777;
}