* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container, .admin-container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.full-width {
    max-width: 1200px;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #34495e;
}

/* Calendar Styling */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-nav {
    background-color: #4a5568;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: #2d3748;
}

.calendar-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.calendar-table th, .calendar-table td {
    border: 1px solid #cbd5e0;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.85rem;
}

.calendar-table th {
    background-color: #ebf8ff;
    color: #2b6cb0;
}

.slot-room-label {
    background-color: #f7fafc;
    text-align: left !important;
    white-space: nowrap;
    width: 140px;
}

.calendar-cell {
    height: 38px;
    vertical-align: middle;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.cell-open {
    background-color: #e6fffa;
    color: #234e52;
    cursor: pointer;
}

.cell-open:hover {
    background-color: #b2f5ea;
    font-weight: bold;
}

.cell-selected {
    background-color: #3182ce !important;
    color: white !important;
    font-weight: bold;
    border: 2px solid #2b6cb0;
}

.cell-booked {
    background-color: #feebc8;
    color: #7b341e;
    font-weight: 600;
}

.cell-ensemble {
    background-color: #e9d8fd;
    color: #44337a;
    font-weight: bold;
}

.cell-closed {
    background-color: #fed7d7;
    color: #9b2c2c;
}

.cell-disabled {
    background-color: #edf2f7;
    color: #a0aec0;
}

.badge-closed {
    background-color: #e53e3e;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Booking Form Box */
.booking-form-box {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.selection-summary {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #2b6cb0;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #4a5568;
}

input[type="text"], input[type="date"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
}

button[type="submit"], .btn-primary {
    background-color: #3182ce;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #718096;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-warning {
    background-color: #dd6b20;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-delete {
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.admin-section {
    margin-top: 30px;
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th, .admin-table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: #f7fafc;
}

.message.error {
    background-color: #fed7d7;
    color: #9b2c2c;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}