/* Basic Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 960px;
    margin: 20px auto;
    padding: 0 20px;
    background-color: #f4f4f4;
}

h1, h2 {
    color: #444;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

form {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

form input[type="text"],
form input[type="datetime-local"],
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
}

form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

form input[type="submit"]:hover {
    background-color: #218838;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

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

.container {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Timeline Styles */
.timeline-container {
    overflow-x: auto; /* Allows horizontal scrolling for the timeline */
}

.timeline-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Prevents content from changing column widths */
}

.timeline-table th,
.timeline-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    min-width: 80px; /* Minimum width for time slots */
}

.timeline-table th:first-child {
    min-width: 120px; /* Wider column for room names */
    position: sticky;
    left: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

.timeline-slot.booked {
    background-color: #dc3545; /* Red for booked */
    color: white;
    font-weight: bold;
}

.timeline-slot.available {
    background-color: #e9ecef; /* Light gray for available */
}

.timeline-table tbody th {
    color: #333; /* Dark text for room names */
}
