.meeting-room-graphic {
    min-height: 244px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        rgba(255, 255, 255, .035);
    background-size: 34px 34px;
}

.meeting-room-screen {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 42%;
    height: 16px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #377688, #4fd1d0);
    box-shadow: 0 0 28px rgba(79, 209, 208, .35);
}

.meeting-room-table {
    width: min(260px, 72%);
    height: 126px;
    position: relative;
    border-radius: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 18px;
}

.meeting-room-table strong {
    max-width: 150px;
    overflow-wrap: anywhere;
}

.meeting-room-table .seat {
    width: 28px;
    height: 28px;
    position: absolute;
    border-radius: 10px;
    background: rgba(79, 209, 208, .55);
    border: 1px solid rgba(255, 255, 255, .18);
}

.seat-1 {
    top: -18px;
    left: 18%;
}

.seat-2 {
    top: -18px;
    left: 42%;
}

.seat-3 {
    top: -18px;
    right: 18%;
}

.seat-4 {
    bottom: -18px;
    left: 18%;
}

.seat-5 {
    bottom: -18px;
    left: 42%;
}

.seat-6 {
    bottom: -18px;
    right: 18%;
}

.seat-7 {
    left: -16px;
    top: 28%;
}

.seat-8 {
    left: -16px;
    bottom: 28%;
}

.seat-9 {
    right: -16px;
    top: 28%;
}

.seat-10 {
    right: -16px;
    bottom: 28%;
}

.seat-11 {
    top: 15%;
    left: 5%;
}

.seat-12 {
    top: 15%;
    right: 5%;
}

.seat-13 {
    bottom: 15%;
    left: 5%;
}

.seat-14 {
    bottom: 15%;
    right: 5%;
}

.meeting-room-insight {
    margin-top: 16px;
}

.meeting-room-insight strong,
.meeting-room-insight span {
    display: block;
}

.meeting-room-insight span {
    margin-top: 4px;
    color: #9fb5bf;
}

.meeting-demand-bars {
    min-height: 210px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
}

.meeting-demand-bars div {
    height: 180px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
}

.meeting-demand-bars span {
    width: 100%;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, #4fd1d0, #377688);
    min-height: 8px;
}

.meeting-demand-bars strong {
    color: #9fb5bf;
    font-size: 12px;
}

.calendar-event-dot.meeting-room-approved {
    background: rgba(16, 185, 129, .16);
}

.calendar-event-dot.meeting-room-pending {
    background: rgba(245, 158, 11, .18);
}

.calendar-event-dot.meeting-room-rejected,
.calendar-event-dot.meeting-room-cancelled {
    background: rgba(239, 68, 68, .18);
}

.workspace-pill.pending {
    background: rgba(245, 158, 11, .18);
    color: #fcd34d;
}

.workspace-pill.approved {
    background: rgba(16, 185, 129, .16);
    color: #86efac;
}

.workspace-pill.rejected,
.workspace-pill.cancelled {
    background: rgba(239, 68, 68, .18);
    color: #fca5a5;
}

.meeting-room-page {
    animation: workspace-page-rise .48s ease both;
}

.modal.d-block .meeting-booking-details-dialog {
    height: auto;
    min-height: 0;
    align-items: flex-start;
}

.modal.d-block .meeting-booking-details-dialog .modal-content {
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
}

.modal.d-block .meeting-booking-details-dialog .modal-body {
    flex: 0 1 auto;
}

.meeting-room-page .workspace-stat,
.meeting-room-page .dashboard-card {
    animation: workspace-panel-rise .5s ease both;
}

.meeting-room-page .workspace-stat:nth-child(2),
.meeting-room-page .row .dashboard-card:nth-child(2) {
    animation-delay: .05s;
}

.meeting-room-page .workspace-stat:nth-child(3),
.meeting-room-page .row .dashboard-card:nth-child(3) {
    animation-delay: .1s;
}

.meeting-room-page .workspace-stat:nth-child(4) {
    animation-delay: .15s;
}

.meeting-room-graphic::after {
    content: "";
    position: absolute;
    inset: auto 12% 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 209, 208, .72), transparent);
    animation: meeting-room-scan 3.6s ease-in-out infinite;
}

.meeting-room-screen {
    animation: meeting-room-screen-glow 2.6s ease-in-out infinite;
}

.meeting-room-table {
    animation: meeting-room-float 4.4s ease-in-out infinite;
}

.meeting-room-table .seat {
    animation: meeting-seat-pulse 3.2s ease-in-out infinite;
}

.meeting-room-table .seat:nth-child(2n) {
    animation-delay: .22s;
}

.meeting-room-table .seat:nth-child(3n) {
    animation-delay: .44s;
}

.meeting-demand-bars span {
    transform-origin: bottom;
    animation: meeting-bar-grow .55s ease both;
}

.meeting-demand-bars div:nth-child(2) span {
    animation-delay: .04s;
}

.meeting-demand-bars div:nth-child(3) span {
    animation-delay: .08s;
}

.meeting-demand-bars div:nth-child(4) span {
    animation-delay: .12s;
}

.meeting-demand-bars div:nth-child(5) span {
    animation-delay: .16s;
}

.meeting-demand-bars div:nth-child(6) span {
    animation-delay: .2s;
}

.meeting-demand-bars div:nth-child(7) span {
    animation-delay: .24s;
}

.meeting-demand-bars div:nth-child(8) span {
    animation-delay: .28s;
}

.meeting-room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .22);
}

.meeting-room-availability {
    animation: workspace-panel-rise .35s ease both;
}

.workspace-date-time .input-group-text {
    min-width: 48px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: rgba(79, 209, 208, .12);
    color: #94f1ef;
}

.workspace-date-time .form-control {
    min-height: 50px;
    border-left: 0;
    border-radius: 0 14px 14px 0;
}

.workspace-date-time .form-control:focus {
    border-left: 0;
}

.workspace-date-time .form-control.is-invalid {
    border-left: 0;
}

.workspace-date-picker-control {
    width: 100%;
}

.workspace-date-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 1px solid rgba(79, 209, 208, .24);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(79, 209, 208, .12), rgba(255, 255, 255, .04)),
        rgba(255, 255, 255, .06);
    color: #f8fafc;
    text-align: left;
}

.workspace-date-input .placeholder {
    color: #d7e3ea;
}

.workspace-date-input i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(79, 209, 208, .20);
    color: #e8feff;
}

.workspace-date-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: grid;
    place-items: center;
    padding: clamp(10px, 3vh, 24px);
    background: rgba(2, 8, 14, .58);
    overflow: auto;
}

.workspace-date-panel {
    width: min(390px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 24px));
    overflow: auto;
    border: 1px solid rgba(79, 209, 208, .24);
    border-radius: 18px;
    background: #10202d;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    padding: clamp(12px, 2.2vw, 16px);
}

/* Shared task/project calendar context. */
.workspace-date-selection-summary {
    display: grid;
    gap: 4px;
    margin: 0 4px 10px;
    padding: 10px 12px;
    border: 1px solid rgba(79, 209, 208, .24);
    border-radius: 10px;
    background: rgba(79, 209, 208, .09);
    color: #e8feff;
    font-size: 12px;
}

.workspace-date-selection-summary strong { font-size: 13px; }
.workspace-date-selection-summary span,
.workspace-date-selection-summary small { color: #b9dfe2; }
.workspace-date-days button:disabled {
    cursor: not-allowed;
    opacity: .28;
    text-decoration: line-through;
}

.workspace-date-days button { position: relative; }
.workspace-date-event-count {
    position: absolute;
    right: 3px;
    bottom: 2px;
    min-width: 12px;
    height: 12px;
    padding: 0 3px;
    border-radius: 999px;
    background: #199b96;
    color: #ffffff;
    font-size: 8px;
    line-height: 12px;
}

html[data-theme="light"] .workspace-date-selection-summary {
    border-color: #b9deda;
    background: #eef9f7;
    color: #173847;
}

html[data-theme="light"] .workspace-date-selection-summary span,
html[data-theme="light"] .workspace-date-selection-summary small { color: #456372; }

.workspace-date-panel-header {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.workspace-date-panel-header strong {
    text-align: center;
    color: #f8fafc;
    font-size: 16px;
}

.workspace-date-panel-header button,
.workspace-date-days button,
.workspace-date-actions button {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: #eef8fc;
}

.workspace-date-panel-header button {
    width: 42px;
    height: 42px;
}

.workspace-date-weekdays,
.workspace-date-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(5px, 1.3vw, 8px);
}

.workspace-date-weekdays span {
    color: #9fb5bf;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.workspace-date-days {
    margin-top: 10px;
}

.workspace-date-days button,
.workspace-date-days span {
    display: grid;
    place-items: center;
    min-height: clamp(34px, 8vw, 42px);
}

.workspace-date-days button:hover,
.workspace-date-panel-header button:hover,
.workspace-date-actions button:hover {
    border-color: rgba(79, 209, 208, .42);
    background: rgba(79, 209, 208, .14);
}

.workspace-date-days button.active {
    border-color: rgba(79, 209, 208, .76);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.workspace-date-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.workspace-date-actions button {
    min-height: 38px;
    padding: 0 14px;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: rgba(239, 68, 68, .78);
    background-color: rgba(239, 68, 68, .08);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .10);
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    color: #fca5a5;
    font-size: 12px;
}

@keyframes workspace-page-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes workspace-panel-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes meeting-room-screen-glow {

    0%,
    100% {
        box-shadow: 0 0 18px rgba(79, 209, 208, .25);
    }

    50% {
        box-shadow: 0 0 36px rgba(79, 209, 208, .58);
    }
}

@keyframes meeting-room-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes meeting-seat-pulse {

    0%,
    100% {
        background: rgba(79, 209, 208, .46);
    }

    50% {
        background: rgba(168, 213, 194, .78);
    }
}

@keyframes meeting-room-scan {

    0%,
    100% {
        opacity: .28;
        transform: translateX(-10%);
    }

    50% {
        opacity: .9;
        transform: translateX(10%);
    }
}

@keyframes meeting-bar-grow {
    from {
        transform: scaleY(.08);
        opacity: .35;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .meeting-room-page,
    .meeting-room-page .workspace-stat,
    .meeting-room-page .dashboard-card,
    .meeting-room-graphic::after,
    .meeting-room-screen,
    .meeting-room-table,
    .meeting-room-table .seat,
    .meeting-demand-bars span,
    .meeting-room-availability {
        animation: none;
    }
}

