html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #FAFAF5;
    min-height: 100vh;
    padding: 20px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    overflow-y: visible;
}

.header {
    background: linear-gradient(135deg, #FF8204 0%, #E67300 100%);
    color: white;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    position: relative;
}

.header-right {
    grid-column: 3;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

.header h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 600;
    text-align: center;
    grid-column: 2;
    justify-self: center;
}

.language-selector {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.lang-btn .flag {
    display: inline-block;
    width: 1.5em;
    height: 1.125em; /* 4:3 aspect ratio */
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:active {
    transform: scale(0.95);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-selector {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.quick-date-buttons {
    display: flex;
    gap: 10px;
}

.quick-date-btn {
    padding: 10px 20px;
    background: white;
    color: #FF8204;
    border: 2px solid #FF8204;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-date-btn:hover {
    background: #FF8204;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 130, 4, 0.3);
}

.quick-date-btn:active {
    transform: translateY(0);
}

.date-form {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.date-form label {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.date-form input[type="date"] {
    padding: 12px 16px;
    border: 2px solid #FF8204;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.date-form input[type="date"]:focus {
    outline: none;
    border-color: #E67300;
    box-shadow: 0 0 0 3px rgba(255, 130, 4, 0.1);
}

.date-form button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #FF8204 0%, #E67300 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.date-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 130, 4, 0.4);
}

.date-form button:active {
    transform: translateY(0);
}

.building-nav {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.building-nav-btn {
    padding: 8px 16px;
    background: white;
    color: #FF8204;
    border: 2px solid #FF8204;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.building-nav-btn:hover {
    background: #FF8204;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 130, 4, 0.3);
}

.building-nav-btn:active {
    transform: translateY(0);
}

.content {
    padding: 30px;
}

.building-section {
    margin-bottom: 40px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    scroll-margin-top: 20px;
    overflow: visible;
}

.building-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF8204;
}

.building-header {
    font-size: 1.5em;
    font-weight: 600;
    color: #FF8204;
    margin: 0;
}

.building-header-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.building-header-main .room-locate-btn {
    font-size: 0.9em;
}

.building-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-to-top-btn {
    padding: 8px 12px;
    background: transparent;
    color: #FF8204;
    border: 2px solid #FF8204;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.scroll-to-top-btn:hover {
    background: #FF8204;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 130, 4, 0.3);
}

.scroll-to-top-btn:active {
    transform: translateY(0);
}

.scroll-to-top-btn svg {
    width: 20px;
    height: 20px;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.room-section {
    margin-bottom: 0;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #FF8204;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.room-header {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-left: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 10px;
    margin-bottom: 6px;
    font-size: 0.85em;
    color: #666;
}

.room-meta-chairs,
.room-meta-hybrid {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.room-meta-hybrid {
    background: #e8f4fc;
}

.table-container {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 8px;
    flex: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95em;
}

thead {
    background: linear-gradient(135deg, #FF8204 0%, #E67300 100%);
    color: white;
}

th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

th:nth-child(1),
td:nth-child(1) {
    width: 15%;
    white-space: nowrap;
    padding: 10px 30px 10px 12px !important;
    min-width: 120px;
}

th:nth-child(2),
td:nth-child(2) {
    width: 85%;
}

tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 10px 12px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 0;
}

.booking-row {
    position: relative;
    cursor: help;
}

.booking-row.past-event {
    opacity: 0.5;
    color: #999;
}

.booking-row.past-event td {
    color: #999;
}

.booking-row.past-event:hover {
    opacity: 1;
}

.booking-row.ongoing-event td:first-child::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.booking-row {
    position: relative;
}

.booking-row .tooltip {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 10000;
    transform: translateX(-50%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.booking-row .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.booking-row:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.booking-row .tooltip.tooltip-below {
    top: 100%;
    bottom: auto;
    margin-top: 8px;
    margin-bottom: 0;
}

.booking-row .tooltip.tooltip-below::after {
    top: -6px;
    bottom: auto;
    border-top-color: transparent;
    border-bottom-color: #333;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.empty-state .icon {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.login-container {
    text-align: center;
    padding: 100px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.login-container h2 {
    display: none;
}

.login-container p {
    display: none;
}

.sign-in-separator {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
}

.sign-in-separator::before,
.sign-in-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.sign-in-separator span {
    padding: 0 15px;
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    background: #f3f3f3;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    max-width: 400px;
    width: 100%;
}

.login-btn:hover {
    background: #e8e8e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.microsoft-logo {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: white;
    font-size: 0.9em;
}

.logout-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* Booking Button Styles */
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.booking-btn {
    padding: 8px 16px;
    background: white;
    color: #FF8204;
    border: 1px solid #FF8204;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 10px;
}

.booking-btn:hover {
    background: #FF8204;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 130, 4, 0.3);
}

.booking-btn:active {
    transform: translateY(0);
}

.booking-btn-wrap {
    display: none;
}

.room-name {
    cursor: default;
}

.room-header-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.room-locate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid #FF8204;
    border-radius: 999px;
    background: #fff;
    color: #FF8204;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(255, 130, 4, 0.15);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    flex-shrink: 0;
}

.room-locate-btn:hover {
    background: linear-gradient(135deg, #FF8204 0%, #E67300 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 130, 4, 0.3);
}

.room-locate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 130, 4, 0.2);
}

.room-locate-btn:focus-visible {
    outline: 2px solid #FF8204;
    outline-offset: 2px;
}

.room-plan-preview {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(96vw, 1000px);
    height: auto;
    max-width: calc(100vw - 12px);
    max-height: calc(100vh - 24px);
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    z-index: 9000;
    display: none;
    overflow: hidden;
}

.room-plan-preview.visible {
    display: flex;
    flex-direction: column;
}

.room-plan-preview-header {
    padding: 8px 12px;
    font-size: 0.82em;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ececec;
    background: #f8f8f8;
}

.room-plan-preview img,
.room-plan-preview iframe {
    width: 100%;
    border: 0;
    display: none;
    background: #fff;
    cursor: pointer;
}

.room-plan-preview.show-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 72px);
    object-fit: contain;
}

.room-plan-preview.show-pdf iframe {
    display: block;
    height: min(80vh, 760px);
}

/* Booking Modal Styles */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.booking-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.booking-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: calc(100% - 40px);
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    box-sizing: border-box;
}

.booking-modal-header {
    padding: 20px 40px 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FF8204 0%, #E67300 100%);
    color: white;
}

.booking-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.booking-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
    line-height: 1;
}

.booking-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.booking-modal-body {
    padding: 30px 40px 30px 30px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    box-sizing: border-box;
}

.booking-caution {
    margin: 0 0 18px 0;
    padding: 10px 12px;
    background: #fff8e6;
    border-left: 4px solid #e6a800;
    border-radius: 4px;
    font-size: 0.875em;
    color: #6b5a00;
    line-height: 1.4;
}

.booking-form-section {
    margin-bottom: 18px;
}

.booking-form-section label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.booking-form-section input[type="text"],
.booking-form-section input[type="email"],
.booking-form-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.booking-form-section input[type="text"]:focus,
.booking-form-section input[type="email"]:focus,
.booking-form-section textarea:focus {
    outline: none;
    border-color: #FF8204;
    box-shadow: 0 0 0 3px rgba(255, 130, 4, 0.1);
}

.booking-form-section textarea {
    resize: vertical;
    min-height: 100px;
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 8px;
    margin-top: 8px;
}

.slot-item {
    padding: 6px 10px;
    min-height: 36px;
    line-height: 1.25;
    white-space: nowrap;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875em;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-item:hover {
    border-color: #FF8204;
    background: #fff5eb;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 130, 4, 0.2);
}

.slot-item.selected {
    background: linear-gradient(135deg, #FF8204 0%, #E67300 100%);
    color: white;
    border-color: #FF8204;
    box-shadow: 0 2px 8px rgba(255, 130, 4, 0.3);
}

.slot-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #999;
}

.slot-item.disabled:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    transform: none;
    box-shadow: none;
}

.selected-slots-count {
    margin-top: 6px;
    font-size: 0.875em;
    color: #666;
    font-weight: 500;
}

/* Booking Form Actions */
.booking-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.booking-btn-cancel {
    padding: 12px 24px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.booking-btn-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF8204 0%, #E67300 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 130, 4, 0.4);
}

.booking-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Booking Message */
.booking-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95em;
    font-weight: 500;
}

.booking-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.booking-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
        padding: 20px 16px;
    }

    .header > * {
        min-width: 0;
    }

    .header-content {
        justify-self: center;
        min-width: 0;
    }

    .header-logo {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .header h1 {
        font-size: 1.8em;
        grid-column: 1;
    }

    .header-right {
        justify-self: center;
        max-width: 100%;
        align-items: center;
        min-width: 0;
    }

    .user-info {
        grid-column: 1;
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .date-selector {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 15px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .quick-date-buttons {
        width: 100%;
        justify-content: center;
    }

    .quick-date-btn {
        flex: 1;
    }

    .date-form {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .date-form label {
        flex-shrink: 0;
    }

    .date-form input[type="date"],
    .date-form button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    table {
        font-size: 0.85em;
    }

    th, td {
        padding: 10px 8px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .user-info {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }

    .logout-btn {
        white-space: nowrap;
    }

    .room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .room-header .booking-btn {
        display: none;
    }

    .booking-btn-wrap {
        display: block;
        margin-top: 12px;
        padding: 0 10px 10px;
    }

    .room-plan-preview {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .booking-btn--bottom {
        display: block !important;
        width: 100%;
        margin: 0;
    }

    .booking-btn {
        width: 100%;
    }

    .booking-modal-content {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }

    .booking-modal-header {
        padding: 15px 20px;
    }

    .booking-modal-header h2 {
        font-size: 1.2em;
    }

    .booking-modal-body {
        padding: 20px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px 8px;
    }

    .slot-item {
        padding: 8px 10px;
        min-height: 38px;
        font-size: 0.8em;
    }

    .booking-form-actions {
        flex-direction: column;
    }

    .booking-btn-cancel,
    .booking-btn-submit {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .booking-modal-content {
        max-width: 600px;
    }
}

@media (min-width: 1025px) {
    .booking-modal-content {
        max-width: 550px;
    }
}
