* {
    font-family: "Inter", "Century Gothic";
}


body {
    margin: 0;
    background-color: #e5e5e5;
    font-family: Arial, sans-serif;
    max-height: 100vh; /* Ensure page takes at least full viewport height */
}

.page {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
}

/* Error message styling */
#notification-bar {
    width: 100%;
    border: 0.5px solid;
    border-radius: 10px;
    text-align: center;
    margin: 10px 0 10px 0;
}

.status-none {
    display: none;
}

.status-success {
    background-color: rgb(200, 250, 200);
    border-color: green;
    color: green;
    font-style: italic;
}

.status-error {
    background-color: rgb(250, 200, 200);
    border-color: rgb(200, 0, 0);
    color: rgb(200, 0, 0);
    font-weight: bold;
}

#error-message {
    font-size: 15px;
    text-align: center;
}


.top-bar {
    position: sticky; /* Make top bar sticky */
    top: 0;
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Prevent top bar from shrinking */
}

.rooms-container {
    display: flex;
    flex: 1;
    height: 100%;
    align-items: center;
}

.rooms {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    border-right: 1px solid #ccc;
    box-sizing: border-box;
    cursor: pointer; /* Indicate clickable elements */
    transition: background-color 0.2s ease;
}

.rooms:last-child {
    border-right: none;
}

.rooms h4 {
    font-size: 30px;
    margin: 0;
}

.rooms p {
    font-size: 15px;
    margin: 0;
    text-align: center;
}

.rooms:hover {
    background-color: #dcdcdc;
}

.vacant {
    background-color: #73fc03; /* Vacant */
}

.occupied {
    background-color: #e05a31; /* Occupied */
}

.reserved {
    background-color: #f2e533; /* Reserved */
}

.vacant:hover {
    background-color: #96e33d;
}

.occupied:hover {
    background-color: #f74f25;
}

.reserved:hover {
    background-color: #eaf72a;
}

.back-to-home {
    font-size: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.back-to-home:hover {
    background-color: #0056b3;
}

.main-content {
    display: flex;
    padding: 20px;
    padding-bottom: 0px;
    flex-grow: 1; /* Allow main content to take remaining space */
    overflow-y: auto; /* Enable scrolling within main content if needed */
}

.calendar-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    max-width: 320px;
    margin-right: 20px;
    flex-shrink: 0;
}

.flatpickr-calendar {
    width: 100%;
    box-shadow: none;
    border: 1px solid #ccc;
}

.selected-date-display {
    flex-grow: 1;
    height: 75vh;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    overflow-y: scroll;
}

.selected-date-display h2 {
    margin-top: 0;
    font-size: 30px;
    color: #333;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 70px repeat(4, 1fr);
    grid-template-rows: 40px repeat(121, 20px);
    column-gap: 4px;
    row-gap: 0px;
    margin-top: 20px;
    width: 100%;
    max-height: calc(100%-30px);
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.grid-header-col {
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.grid-header-row {
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.grid-cell {
    background-color: white;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    margin-top: 2px;
    margin-bottom: 2px;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.grid-cell.red {
    background-color: #e05a31;
    border: #e05a31;
}

.grid-cell.top-block {
    margin-bottom: 0px;
    padding-bottom: 2px;
}

.grid-cell.bottom-block {
    margin-top: 0px;
    padding-top: 2px;
}

.time-label {
    font-size: 13px;
    color: #555;
    font-weight: bold;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

p {
    height: 2vh;
    font-weight: bold;
    font-style: italic;
}

.schedule-item {
    font-weight: bold;
}

@media (max-width: 700px) {
    .main-content {
        flex-direction: column;
        padding: 5px;
    }

    .calendar-container {
        min-width: 100%;
        align-items: center;
        justify-content: center;
        scale: 0.85;
        top: -30px;
        margin-bottom: -5%;
    }

    .flatpickr-rContainer {
        margin-left: auto;
        margin-right: auto;
    }

	.rooms h4 {
		font-size: 25px;
	}

    .rooms p {
		font-size: 15px;
    }

    .selected-date-display {
        height: 35vh;
    }
}
