body { background-color: #f4f6f9; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.card { border: none; box-shadow: 0 2px 10px rgba(15,44,82,0.08); border-radius: 10px; }
.btn-primary { background-color: #1d5fbf; border-color: #1d5fbf; }
.btn-primary:hover { background-color: #164a99; border-color: #164a99; }
.badge-pending { background-color: #f5a524; }
.badge-approved { background-color: #17c964; }
.badge-rejected { background-color: #f31260; }
.badge-cancelled { background-color: #71717a; }
.kpi-value { font-size: 1.8rem; font-weight: 700; color: #0f2c52; }
.kpi-label { font-size: 0.82rem; color: #6b7686; }
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f2c52 0%, #0a1e38 100%); padding: 1rem; }
.auth-card { max-width: 420px; width: 100%; }

/* =====================================================================
   Availability Calendar — visual green/red room timeline
   ===================================================================== */
.availability-card { overflow-x: auto; }

.room-label-spacer { width: 190px; flex-shrink: 0; }

.hour-ruler { display: flex; margin-bottom: 6px; min-width: 760px; }
.hour-track { position: relative; flex: 1; height: 18px; }
.hour-tick {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: #6b7686;
    white-space: nowrap;
}
.hour-tick:first-child { transform: translateX(0); }
.hour-tick:last-child { transform: translateX(-100%); }

.room-row { display: flex; align-items: stretch; margin-bottom: 10px; min-width: 760px; }

.room-label {
    width: 190px;
    flex-shrink: 0;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-strip {
    position: relative;
    flex: 1;
    height: 46px;
    background-color: #e6f9ee;   /* available = green */
    border: 1px solid #cdeedb;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
}
.room-strip:hover { background-color: #dcf5e8; }

.room-strip-maintenance {
    background-color: #eceef1;
    border: 1px dashed #c3c8d1;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}
.maintenance-label { font-size: 0.75rem; color: #6b7686; font-weight: 600; letter-spacing: .02em; }

.hour-gridline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(15,44,82,0.08);
    pointer-events: none;
}

.now-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #1d5fbf;
    z-index: 3;
    pointer-events: none;
}

.booking-block {
    position: absolute;
    top: 3px;
    bottom: 3px;
    background-color: #f31260;   /* booked / unavailable = red */
    border-radius: 5px;
    color: #fff;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
    cursor: default;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    z-index: 2;
}
.booking-block:hover { filter: brightness(1.08); }

.booking-block-pending {
    /* Still shown as red (unavailable) — a dashed inset border is the
       only visual difference, so pending vs approved stays a detail
       you see on hover, not a third color. */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 6px, transparent 6px 12px);
}

.booking-block-text { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 767px) {
    .room-label { width: 130px; }
    .room-label-spacer { width: 130px; }
}
