/* ═══════════════════════════════════════════════════════ */
/*  SONDER PMS — Professional Dashboard UI               */
/*  Design System: Dark + Glass + SVG Icons               */
/* ═══════════════════════════════════════════════════════ */

:root {
    /* Core Palette */
    --bg-primary: #070b14;
    --bg-secondary: #0f1629;
    --bg-card: rgba(15, 22, 41, 0.88);
    --bg-glass: rgba(22, 33, 62, 0.55);
    --bg-elevated: rgba(22, 33, 62, 0.92);
    --bg-hover: rgba(255, 255, 255, 0.04);
    --bg-active: rgba(59, 130, 246, 0.10);

    /* Text */
    --text-primary: #eef2ff;
    --text-secondary: #94a3b8;
    --text-muted: #556580;
    --text-inverse: #0f1629;

    /* Accents */
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.25);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --accent-amber: #f59e0b;
    --accent-amber-glow: rgba(245, 158, 11, 0.25);
    --accent-rose: #f43f5e;
    --accent-rose-glow: rgba(244, 63, 94, 0.25);
    --accent-violet: #8b5cf6;
    --accent-violet-glow: rgba(139, 92, 246, 0.25);
    --accent-cyan: #06b6d4;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --border-focus: var(--accent-blue);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.55);
    --shadow-glow-blue: 0 0 0 3px rgba(59, 130, 246, 0.15);

    /* Layout */
    --sidebar-width: 252px;
    --sidebar-collapsed: 68px;
    --topbar-height: 60px;

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 25%, rgba(139, 92, 246, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(16, 185, 129, 0.02) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ─── SELECTION ─── */
::selection { background: rgba(59, 130, 246, 0.3); color: #fff; }

/* ═══════════════════════════════════════ */
/*  1. SIDEBAR                            */
/* ═══════════════════════════════════════ */
.app-shell {
    width: 100%;
    height: 100vh;
    display: flex;
}

.sidebar {
    width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-width: 0;
    flex-shrink: 0;
    background: var(--bg-elevated);
    backdrop-filter: blur(24px) saturate(1.2);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 50;
    position: relative;
    transition: width 300ms var(--ease-out), max-width 300ms var(--ease-out);
    overflow: hidden;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem 1.25rem 1.25rem;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.brand-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.brand-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.sidebar-collapse-btn {
    width: 28px; height: 28px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration-fast);
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Collapsed state — width enforced via inline !important in JS (toggleSidebar) */
.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    max-width: var(--sidebar-collapsed);
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .brand-tag,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .sidebar-user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.sidebar.collapsed .sidebar-collapse-btn svg {
    transform: rotate(180deg);
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.6rem;
}

.sidebar.collapsed .sidebar-user {
    justify-content: center;
}

.sidebar.collapsed .sidebar-logout-btn {
    display: none;
}

.sidebar.collapsed .sidebar-top {
    justify-content: center;
    padding: 1.25rem 0.5rem;
}

.sidebar.collapsed .brand {
    gap: 0;
}

.sidebar.collapsed .sidebar-collapse-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

/* ─── NAV ─── */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0.6rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 0 0.65rem;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    transition: opacity var(--duration-normal);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    margin-bottom: 1px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-active);
    color: var(--accent-blue);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 55%;
    background: var(--accent-blue);
    border-radius: 0 3px 3px 0;
}

.nav-svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-item.active .nav-svg { opacity: 1; }

.nav-label {
    white-space: nowrap;
    transition: opacity var(--duration-normal);
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-rose);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    line-height: 1.6;
}

/* ─── SIDEBAR FOOTER ─── */
.sidebar-footer {
    margin-top: auto;
    padding: 0.85rem 0.85rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sidebar-avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    transition: opacity var(--duration-normal);
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.sidebar-logout-btn {
    width: 30px; height: 30px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration-fast);
    flex-shrink: 0;
}

.sidebar-logout-btn:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

/* ═══════════════════════════════════════ */
/*  2. MAIN CONTENT AREA                  */
/* ═══════════════════════════════════════ */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* ─── TOPBAR ─── */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-elevated);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-shrink: 0;
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.topbar-hamburger {
    display: none;
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all var(--duration-fast);
}

.topbar-hamburger:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.page-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.page-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    min-width: 220px;
    transition: all var(--duration-fast);
    color: var(--text-muted);
}

.search-box:focus-within {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow-blue);
    background: rgba(59, 130, 246, 0.04);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.search-box input::placeholder { color: var(--text-muted); }

.topbar-btn {
    width: 34px; height: 34px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
    color: var(--text-secondary);
    position: relative;
}

.topbar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.topbar-btn .badge-dot {
    position: absolute;
    top: 5px; right: 5px;
    width: 7px; height: 7px;
    background: var(--accent-rose);
    border-radius: 50%;
    border: 2px solid var(--bg-elevated);
}

/* ─── DASHBOARD CONTENT ─── */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Page transition */
.dashboard-content > * {
    animation: pageContentIn var(--duration-slow) var(--ease-out) both;
}

@keyframes pageContentIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════ */
/*  3. STATS CARDS                        */
/* ═══════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.stat-card.blue::before { background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet)); }
.stat-card.emerald::before { background: linear-gradient(90deg, var(--accent-emerald), #06d6a0); }
.stat-card.amber::before { background: linear-gradient(90deg, var(--accent-amber), #fb923c); }
.stat-card.rose::before { background: linear-gradient(90deg, var(--accent-rose), #e11d48); }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.stat-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; }

.stat-card.blue .stat-icon { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.stat-card.emerald .stat-icon { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.stat-card.amber .stat-icon { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }
.stat-card.rose .stat-icon { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }
.stat-card.violet .stat-icon { background: rgba(139, 92, 246, 0.12); color: var(--accent-violet); }

.stat-trend {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.stat-trend.up { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.stat-trend.down { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }

.stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.15rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═══════════════════════════════════════ */
/*  4. ROOM GRID                          */
/* ═══════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title svg, .panel-title svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }

.section-actions {
    display: flex;
    gap: 0.4rem;
}

.filter-chip {
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
    font-family: inherit;
}

.filter-chip:hover, .filter-chip.active {
    background: var(--bg-active);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.65rem;
}

.room-card {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.room-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.room-card.available { border-left: 3px solid var(--accent-emerald); }
.room-card.occupied { border-left: 3px solid var(--accent-rose); }
.room-card.dirty { border-left: 3px solid var(--accent-amber); }
.room-card.maintenance { border-left: 3px solid var(--text-muted); }

.room-number {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
}

.room-type {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.room-status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.room-status-badge.available { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.room-status-badge.occupied { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }
.room-status-badge.dirty { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }
.room-status-badge.maintenance { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }

.room-guest {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.room-condition-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.room-condition-dot.clean { background: var(--accent-emerald); }
.room-condition-dot.dirty { background: var(--accent-amber); }
.room-condition-dot.inspecting { background: var(--accent-violet); }
.room-condition-dot.out-of-order { background: var(--text-muted); }

/* ═══════════════════════════════════════ */
/*  5. BOOKINGS TABLE                     */
/* ═══════════════════════════════════════ */
.content-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.panel-header {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.12);
}

.panel-title {
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-body {
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.booking-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--duration-fast);
    cursor: pointer;
}

.booking-row:hover { background: rgba(255, 255, 255, 0.02); }
.booking-row:last-child { border-bottom: none; }

.booking-avatar {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.booking-avatar.confirmed { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.booking-avatar.checked-in { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.booking-avatar.checked-out { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }

.booking-info { flex: 1; min-width: 0; }

.booking-guest-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-dates {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.booking-room-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.booking-status {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.booking-status.confirmed { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.booking-status.checked-in { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.booking-status.checked-out { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); }
.booking-status.cancelled { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }

/* ═══════════════════════════════════════ */
/*  6. ACTIVITY FEED                      */
/* ═══════════════════════════════════════ */
.activity-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.info { background: var(--accent-blue); }
.activity-dot.success { background: var(--accent-emerald); }
.activity-dot.warning { background: var(--accent-amber); }
.activity-dot.error { background: var(--accent-rose); }

.activity-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.activity-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ═══════════════════════════════════════ */
/*  7. MODALS                             */
/* ═══════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    backdrop-filter: blur(4px);
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

.modal-overlay.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content,
.modal-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp var(--duration-slow) var(--ease-out);
    max-height: 90vh;
}

.modal-content { width: 560px; max-width: 90vw; }

.modal-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.close-btn,
.modal-close {
    width: 30px; height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration-fast);
}

.close-btn:hover,
.modal-close:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

.modal-body {
    padding: 1.35rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 0.85rem 1.35rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* ─── Folio Details ─── */
.folio-section {
    margin-bottom: 1.15rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.folio-section h4 {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.folio-list { list-style: none; }

.folio-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.folio-list li:last-child { border-bottom: none; }

.folio-total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border-color);
    font-weight: 700;
}

.text-danger { color: var(--accent-rose); }
.text-success { color: var(--accent-emerald); }

.final-amount {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.glow-text {
    font-size: 1.35rem;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.payment-methods label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.payment-select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    transition: border var(--duration-fast);
}

.payment-select:focus { border-color: var(--border-focus); }

/* ═══════════════════════════════════════ */
/*  8. BUTTONS                            */
/* ═══════════════════════════════════════ */
.btn {
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--duration-fast);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
}

.btn-danger {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

.btn-danger:hover {
    background: rgba(244, 63, 94, 0.18);
}

/* ═══════════════════════════════════════ */
/*  9. LOADING & EMPTY STATES             */
/* ═══════════════════════════════════════ */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-muted);
    gap: 0.85rem;
}

.spinner {
    width: 28px; height: 28px;
    border: 2.5px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.empty-state-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

/* ═══════════════════════════════════════ */
/*  10. LOGIN SCREEN                      */
/* ═══════════════════════════════════════ */
.login-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 70% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.login-card {
    width: 380px;
    max-width: 90vw;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(59, 130, 246, 0.05);
    animation: slideUp var(--duration-slow) var(--ease-out);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.85rem;
    color: #fff;
}

.login-logo h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: all var(--duration-fast);
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow-blue);
    background: rgba(59, 130, 246, 0.04);
}

.form-input::placeholder { color: var(--text-muted); }

.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-input.has-icon {
    padding-left: 2.4rem;
}

.login-btn {
    width: 100%;
    padding: 0.7rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 700;
}

.login-error {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.18);
    color: var(--accent-rose);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
    display: none;
}

.login-error.show { display: block; }

.login-demo-hint {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ═══════════════════════════════════════ */
/*  11. QUICK ACTIONS BAR                 */
/* ═══════════════════════════════════════ */
.quick-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
    font-family: inherit;
}

.quick-action-btn:hover {
    background: var(--bg-active);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

.quick-action-btn.primary-action {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.quick-action-btn .qa-icon { display: inline-flex; align-items: center; vertical-align: middle; }
.quick-action-btn .qa-icon svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════ */
/*  12. TOAST NOTIFICATIONS               */
/* ═══════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    min-width: 260px;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    animation: toastIn var(--duration-slow) var(--ease-out), toastOut var(--duration-normal) ease 3.5s forwards;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
}

.toast.success { border-left: 3px solid var(--accent-emerald); }
.toast.error { border-left: 3px solid var(--accent-rose); }
.toast.info { border-left: 3px solid var(--accent-blue); }

.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-message { flex: 1; }

@keyframes toastIn {
    from { transform: translateX(100%) scale(0.95); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* ═══════════════════════════════════════ */
/*  13. TIMELINE / CALENDAR               */
/* ═══════════════════════════════════════ */
.timeline-wrapper {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: calc(100vh - 155px);
    box-shadow: var(--shadow-sm);
}

.timeline-header {
    display: flex;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
    height: 48px;
    flex-shrink: 0;
}

.timeline-room-header {
    width: 150px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.015);
    z-index: 10;
}

.timeline-days-header {
    display: flex;
    flex: 1;
    overflow-x: hidden;
}

.timeline-day-cell {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-day-cell.weekend {
    background: rgba(255, 255, 255, 0.02);
    color: var(--accent-rose);
}

.timeline-day-cell.today {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    font-weight: 700;
}

.timeline-day-date {
    font-size: 0.85rem;
    font-weight: 600;
}

.timeline-body {
    display: flex;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.timeline-scroll-area {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-x: auto;
    overflow-y: hidden;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 59px,
        rgba(255, 255, 255, 0.03) 59px,
        rgba(255, 255, 255, 0.03) 60px
    );
}

.timeline-rooms-col {
    width: 150px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    background: var(--bg-card);
    z-index: 10;
}

.timeline-room-row {
    height: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-room-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.timeline-room-type {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.timeline-grid-row {
    height: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    box-sizing: border-box;
}

.timeline-booking {
    position: absolute;
    top: 5px;
    height: 46px;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.55rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform var(--duration-fast), z-index var(--duration-fast);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.timeline-booking:hover {
    transform: translateY(-1px);
    z-index: 15;
    box-shadow: var(--shadow-md);
}

.timeline-booking-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-overflow: ellipsis;
    overflow: hidden;
}

.timeline-booking-status {
    font-size: 0.62rem;
    opacity: 0.85;
    color: rgba(255,255,255,0.8);
}

.timeline-booking.confirmed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.82), rgba(139, 92, 246, 0.82));
    border-color: rgba(59, 130, 246, 0.35);
}

.timeline-booking.checked-in {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.82), rgba(5, 150, 105, 0.82));
    border-color: rgba(16, 185, 129, 0.35);
}

.timeline-booking.checked-out {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.75), rgba(71, 85, 105, 0.75));
    border-color: rgba(100, 116, 139, 0.35);
}

/* ═══════════════════════════════════════ */
/*  14. FORM GRID                         */
/* ═══════════════════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.form-grid .form-group { margin-bottom: 0; }
.form-grid .form-group.full { grid-column: 1 / -1; }
.form-grid textarea.form-input { resize: vertical; min-height: 48px; }

/* ═══════════════════════════════════════ */
/*  15. GUEST TABLE                       */
/* ═══════════════════════════════════════ */
.guest-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.guest-table thead th {
    text-align: left;
    padding: 0.6rem 0.85rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

.guest-table tbody tr {
    transition: background var(--duration-fast);
    cursor: pointer;
}

.guest-table tbody tr:hover { background: rgba(59, 130, 246, 0.04); }

.guest-table tbody td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════ */
/*  16. VIP & STATUS BADGES               */
/* ═══════════════════════════════════════ */
.vip-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.vip-badge.vip-1 { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }
.vip-badge.vip-2 { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.vip-badge.vip-3 { background: rgba(167, 139, 250, 0.1); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.2); }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.status-confirmed { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.status-badge.status-checked_in { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.status-badge.status-checked_out { background: rgba(100, 116, 139, 0.12); color: #94a3b8; }
.status-badge.status-cancelled { background: rgba(244, 63, 94, 0.1); color: var(--accent-rose); }

/* ═══════════════════════════════════════ */
/*  17. SEARCH DROPDOWN                   */
/* ═══════════════════════════════════════ */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 600;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-dropdown.global { width: 360px; right: auto; }

.dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--duration-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-item:hover { background: rgba(59, 130, 246, 0.08); }
.dropdown-item:last-child { border-bottom: none; }

.search-section-title {
    padding: 0.35rem 0.75rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════ */
/*  18. NOTIFICATION PANEL                */
/* ═══════════════════════════════════════ */
.notification-panel {
    position: fixed;
    top: 52px;
    right: 0.85rem;
    width: 340px;
    max-width: 90vw;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 450;
    animation: slideUp var(--duration-normal) var(--ease-out);
}

.notif-item {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--duration-fast);
}

.notif-item:hover { background: rgba(255, 255, 255, 0.02); }

.notif-item.unread {
    border-left: 3px solid var(--accent-blue);
    background: rgba(59, 130, 246, 0.03);
}

/* ═══════════════════════════════════════ */
/*  19. CALENDAR DnD INTERACTION          */
/* ═══════════════════════════════════════ */
.cal-booking[draggable="true"] {
    cursor: grab;
    transition: opacity var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}

.cal-booking[draggable="true"]:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transform: translateY(-1px);
    z-index: 10;
}

.cal-booking.dragging {
    opacity: 0.35;
    transform: scale(0.95);
    cursor: grabbing;
}

.cal-room-row.drag-over {
    background: rgba(59, 130, 246, 0.1) !important;
    outline: 2px dashed var(--accent-blue);
    outline-offset: -2px;
    border-radius: 4px;
}

.cal-resize-handle {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 7px;
    cursor: ew-resize;
    background: rgba(255,255,255,0.12);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.cal-booking:hover .cal-resize-handle { opacity: 1; }
.cal-resize-handle:hover { background: rgba(59, 130, 246, 0.4); }

.cal-today-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--accent-rose);
    z-index: 5;
    pointer-events: none;
}

.cal-today-line::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px;
    width: 10px; height: 10px;
    background: var(--accent-rose);
    border-radius: 50%;
}

.cal-cell {
    cursor: pointer;
    transition: background var(--duration-fast);
}

.cal-cell:hover { background: rgba(59, 130, 246, 0.06); }
.cal-cell-today { background: rgba(244, 63, 94, 0.04) !important; }

.cal-booking-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.cal-booking:hover .cal-booking-tooltip { opacity: 1; }
.cal-booking-tooltip .tt-guest { font-weight: 600; color: var(--text-primary); margin-bottom: 1px; }
.cal-booking-tooltip .tt-dates { color: var(--text-muted); }

/* ═══════════════════════════════════════ */
/*  20. HOUSEKEEPING KANBAN               */
/* ═══════════════════════════════════════ */
.hk-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    min-height: 400px;
}

.hk-column {
    background: rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hk-column-header {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hk-column-title {
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hk-column-count {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 7px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.hk-column-body {
    padding: 0.55rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hk-task-card {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    position: relative;
}

.hk-task-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.hk-task-card.priority-urgent { border-left: 3px solid var(--accent-rose); }
.hk-task-card.priority-high { border-left: 3px solid var(--accent-amber); }
.hk-task-card.priority-normal { border-left: 3px solid var(--accent-blue); }
.hk-task-card.priority-low { border-left: 3px solid var(--text-muted); }

.hk-task-room {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hk-task-type {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-violet);
    text-transform: uppercase;
}

.hk-task-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hk-task-assignee {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

.hk-task-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.45rem;
}

.hk-btn {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
    font-family: inherit;
}

.hk-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }

.hk-btn.btn-start {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--accent-blue);
}
.hk-btn.btn-start:hover { background: rgba(59, 130, 246, 0.2); }

.hk-btn.btn-complete {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
}
.hk-btn.btn-complete:hover { background: rgba(16, 185, 129, 0.2); }

.hk-filters {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.hk-filter-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.hk-filter-select:focus {
    border-color: var(--border-focus);
    outline: none;
    box-shadow: var(--shadow-glow-blue);
}

.hk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
    flex: 1;
}

.hk-empty-icon { font-size: 1.75rem; margin-bottom: 0.4rem; opacity: 0.4; }

.hk-timer {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════ */
/*  21. MOBILE                            */
/* ═══════════════════════════════════════ */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 40;
    backdrop-filter: blur(2px);
}

.mobile-overlay.active { display: block; }

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .content-panels { grid-template-columns: 1fr; }
    .hk-board { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
        z-index: 60;
        width: var(--sidebar-width);
        transition: transform var(--duration-slow) var(--ease-out);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .topbar-hamburger { display: flex; }

    .search-box { min-width: 140px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .rooms-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .dashboard-content { padding: 0.85rem; }
    .form-grid { grid-template-columns: 1fr; }
    .modal-card, .modal-content { margin: 0.5rem; max-width: calc(100vw - 1rem); }
    .notification-panel { width: calc(100vw - 1.5rem); right: 0.75rem; }
    .search-dropdown.global { width: 100%; }
    .hk-board { grid-template-columns: 1fr; }

    .page-subtitle { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; gap: 0.55rem; }
    .search-box { display: none; }
    .topbar { padding: 0 0.85rem; }
}
