body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    width: 100%;
    background-color: #004500;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed; /* Make the header sticky */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header is in front */
}

aside {
    width: 12%; /* Adjusted width */
    background-color: #f4f4f4;
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 50px; /* Adjust for header height */
    height: calc(100% - 50px); /* Adjust for header height */
    overflow-y: auto;
    z-index: 999; /* Ensure aside is behind header */
    line-height: 2; /* Increase line height */
}

main {
    margin-left: 12%; /* Adjusted to match aside width */
    padding: 20px;
    padding-top: 70px; /* Add padding to avoid content hiding behind sticky header */
    width: 88%; /* Adjusted to match aside width */
    box-sizing: border-box;
}

footer {
    width: 100%;
    background-color: #004500;
    color: white;
    text-align: center;
    padding: 3px;
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 0.8em;
}

/* Header styles */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: ;
    padding: 8px 18px;
}

.logo {
    width: 250px;
}

.title {
    color: white;
    font-size: 1.8em;
    margin: 0;
    text-align: center;
    flex: 1; /* Make the title take up remaining space */
}

.all-bookings-table {
    width: 90%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.all-bookings-table th, .all-bookings-table td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
}

.all-bookings-table th {
    background-color: #f2f2f2;
}

.all-bookings-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.all-bookings-table tr:hover {
    background-color: #f1f1f1;
}

.calendar-container {
    width: 88%;
    margin: 20px auto;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.calendar th, .calendar td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    min-height: 100px; /* Adjust based on desired height */
}

.calendar th {
    background-color: #f2f2f2;
}

.calendar td {
    position: relative;
}

.booking-slot {
    padding: 2px;
    border-radius: 3px;
    margin-top: 5px;
    cursor: pointer;
}

.booking-slot.vacant {
    background-color: #d5edd3;
}

.booking-slot.occupied {
    background-color: #fff5f0;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
}

.booking-slot.vacant {
    background-color: #dcedda;
}

.booking-slot.occupied {
    background-color: #fddbff; /* Updated occupied booking slot color */
}

.booking-slot a {
    font-size: 0.8em; /* Reduced font size for the 'Book' link */
    color: #9191ff;
    text-decoration: none;
}

.links {
    display: block; /* Ensure links are on a new line */
    margin-top: 5px;
    font-size: 0.8em;
}

/* Popup styles */
.popup {
    position: absolute;
    background-color: yellow; /* Set background color to yellow */
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 0;
    font-size: 0.8em;
}

.form-container {
    max-width: 90%; /* Max width for the form container */
    margin: 0 auto; /* Center the form */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-group {
    margin-bottom: 15px;
}

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

input[type="text"], input[type="date"], input[type="time"], input[type="password"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.profile-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.success {
    color: green;
}

.bulk-booking-table {
    width: 80%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bulk-booking-table th, .bulk-booking-table td {
    background-color: #e4f5e6;
    border: 1px solid #ddd;
    padding: 3px;
    text-align: left;
}

.bulk-booking-table th {
    background-color: #f2f2f2;
    padding: 11px;
    font-size: 0.9em;
}

.bulk-booking-table input[type="text"], .bulk-booking-table input[type="date"], .bulk-booking-table input[type="time"], .bulk-booking-table textarea {
    background-color: #fff;
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1.0em;
}

/* Ensure your table takes up 100% width of the container */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

/* Add styles to make the table visually appealing */
.schedule-table th, .schedule-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 1.2em;
}

.schedule-table th {
    background-color: #f2f2f2;
}

.schedule-table tr:nth-child(even) {
    background-color: #bbb;
}

.schedule-table tr:hover {
    background-color: #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    aside {
        width: 100%;
        height: auto;
        position: relative;
        top: 0; /* Reset top positioning */
        height: auto; /* Reset height */
    }

    main {
        margin-left: 0;
        width: 100%;
        padding-top: 60px; /* Adjust padding for sticky header */
    }

    footer {
        position: relative;
    }

    .bulk-booking-table th, .bulk-booking-table td {
        display: block;
        width: 100%;
    }

    .bulk-booking-table th {
        text-align: center;
    }

    .bulk-booking-table td {
        text-align: center;
    }

    .schedule-table {
        width: 100%;
        margin: 0 auto;
    }

    .schedule-table th, .schedule-table td {
        padding: 8px;
    }
}
