/* styles.css */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: #f4f4f4;
}

h1, h2 {
    text-align: center;
    color: #333;
}

.container {
    display: flex;
    flex-wrap: wrap; /* Stack on smaller screens */
    gap: 30px; /* Space between sections */
    max-width: 900px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-section, .list-section {
    flex: 1; /* Share space */
    min-width: 300px; /* Minimum width before wrapping */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"] {
    width: calc(100% - 16px); /* Adjust for padding */
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}

button {
    background-color: #5cb85c;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4cae4c;
}

#reservation-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    max-height: 300px; /* Limit height and add scroll */
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

#reservation-list li {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    border-radius: 3px;
    font-size: 0.95em;
}
#reservation-list li:last-child {
    border-bottom: none;
}

#selected-date-display {
    font-weight: bold;
    color: #555;
}

.message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    display: block; /* Ensure it takes space */
    min-height: 1.5em; /* Prevent layout shift when empty */
}

.message:empty {
    padding: 0; /* Hide empty messages visually */
    min-height: 0;
}


.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.info-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    font-size: 0.9em;
}

.info-note strong {
    color: #007bff;
}