body {
    font-family: 'Inter', sans-serif;
    background-color: #222;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: auto;
}

.controls {
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    font-family: 'Inter', sans-serif;
    position: sticky;
    top: 0;
    background-color: #222;
    z-index: 100;
    align-items: center;
}

.logo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
    margin-bottom: 20px;
}

@media screen and (min-width: 1200px) {
    .logo-header {
        margin: 20px;
    }
}

.logo {
    height: 40px;
}

.menu-button {
    appearance: none;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.controls .menu-button {
    margin-left: auto;
    width: auto;
}

.menu-button:hover {
    background-color: #404040;
    transform: scale(1.02);
}

.description {
    margin-top: 10px;
    font-size: 16px;
    color: #a8a8a8;
}

#menu-pop-up {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-rows: 1fr; /* One row */
    width: 100%;
    height: calc(100vh - 80px); /* Fallback for browsers that do not support Custom Properties */
    height: calc(100svh - 80px); /* Full height minus header */
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    gap: 10px; /* Added gap for spacing */
}

@media screen and (max-width: 620px) {
    #menu-pop-up {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

.mb-10 {
    margin-bottom: 10px;
}

.install-button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #007bffbf;
}

.install-button:hover {
    background-color: #0070b4;
    transform: scale(1.05);
    box-shadow: 0 0 20px #007bff;
}

.adhs-container,
.adhs-container * {
    font-family: 'Inter', sans-serif;
}

h1 {
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: 10px;
    font-weight: 700;
    font-size: 24px;
}

/* Container for the custom progress bar */
#progress-bar-container {
    width: calc(100% - 20px); /* Same width as your native progress bar, leaving 10px margin on both sides */
    margin-left: 10px;
    margin-right: 10px;
    height: 0; /* Same height as your native progress bar */
    border-radius: 5px; /* Rounded corners */
    background-color: #333; /* Same background color as the native progress bar */
    overflow: hidden; /* Ensures the progress fill stays within the rounded corners */
    display: none;
    transition: opacity 0.3s ease allow-discrete;
    opacity: 0;
}

/* The actual progress fill inside the container */
#progress-bar {
    height: 100%; /* Fill the entire container */
    background-color: #009a35; /* Same green color as the available rooms */
    width: 0%; /* Start with 0% width, will change with JavaScript */
    border-radius: 5px; /* Rounded corners on the fill */
    transition: width 20s cubic-bezier(0.63, 0, 0, 1); /* Smooth transition for width change */
}

#progress-bar-container.visible {
    display: block; /* Set to block to make it visible */
}

.hidden {
    display: none;
}

.floorplan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

.floorplan__item {
    text-align: left;
    border-radius: 8px;
    position: relative;
}

.floorplan__item svg {
    width: 100%;
    height: auto;
    user-select: none;
}

.floorplan__item svg tspan {
    pointer-events: none;
}

.floorplan__title {
    margin-bottom: 5px;
    font-weight: 700;
}

select,
input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    max-width: 83px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select::-ms-expand {
    display: none;
}

select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

select option {
    background-color: #333;
    color: #fff;
}

.tooltip {
    position: absolute;
    background-color: rgba(34, 34, 34, 0.9);
    color: #000; /* Use white text for better contrast */
    padding: 10px;
    border-radius: 5px;
    opacity: 0; /* Start invisible */
    transform: translateY(-10px); /* Start slightly above */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for visibility and position */
    z-index: 1001;
    pointer-events: none; /* Prevent mouse interaction during transition */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.tooltip.show {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Positioned correctly */
    pointer-events: auto; /* Allow interaction after showing */
}

.tooltip .timetable {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tooltip .timetable .time-slot {
    display: flex;
    justify-content: space-between;
    padding: 2px 5px;
    border-radius: 3px;
}

.tooltip .timetable .time-slot.available {
    background-color: #009a35;
}

.tooltip .timetable .time-slot.occupied {
    background-color: #ff0000;
}

.cutout {
    position: absolute;
    box-shadow: 0px 0px 0px 9999px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    opacity: 0; /* Start hidden */
    transform: scale(0.95); /* Start slightly smaller */
}

.cutout.show {
    opacity: 1; /* Fully visible */
    transform: scale(1); /* Full size */
}

.additional-rooms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 15px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.additional-room {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #000;
}

.additional-room .room-number {
    font-size: 20px;
    font-weight: bold;
}

.additional-room .room-name,
.additional-room .room-time {
    font-size: 12px;
}

.additional-room .room-name {
    font-weight: 250;
    margin-bottom: 4px;
}

@media screen and (max-width: 768px) {
    .additional-rooms {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        margin-top: 5px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .additional-room {
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

.install-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

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

@media (display-mode: standalone) {
    .install-button {
        display: none;
    }
}