/* ══════════════════════════════════════════════════════════
   ADMIN SIDEBAR LAYOUT
══════════════════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #F1F5F9;
}

/* ── Sidebar ── */
.sidebar {
    width: 248px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 200;
    transition: width 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    box-shadow: 4px 0 32px rgba(0,0,0,0.22);
}
/* Subtle mesh overlay */
.sidebar::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 20% 0%, rgba(0,107,255,0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 100%, rgba(124,58,237,0.10) 0%, transparent 55%);
    z-index: 0;
}
.sidebar > * { position: relative; z-index: 1; }
.sidebar.collapsed { width: 70px; }

/* ── Brand ── */
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 64px; flex-shrink: 0;
}
.sidebar-logo {
    width: 38px; height: 38px; flex-shrink: 0;
    background: linear-gradient(135deg, #006bff 0%, #38bdf8 100%);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: white;
    letter-spacing: -1px;
    cursor: pointer;
    animation: logoPulse 3s ease-in-out infinite;
    transition: transform 0.15s, box-shadow 0.15s;
    user-select: none;
}
.sidebar-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,107,255,0.6);
}
@keyframes logoPulse {
    0%,100% { box-shadow: 0 4px 14px rgba(0,107,255,0.45); }
    50%      { box-shadow: 0 4px 22px rgba(0,107,255,0.7); }
}
.sidebar-app-name {
    font-size: 15.5px; font-weight: 700; color: white;
    white-space: nowrap; letter-spacing: -0.3px;
    transition: opacity 0.22s, transform 0.22s;
}
/* ── All collapsed-state overrides ── */

/* Remove app-name from layout entirely so logo can truly center */
.sidebar.collapsed .sidebar-app-name {
    width: 0; min-width: 0; overflow: hidden;
    opacity: 0; pointer-events: none;
}

/* Brand: collapse gap + center logo */
.sidebar.collapsed .sidebar-brand {
    gap: 0;
    justify-content: center;
    padding: 13px 0;
}

/* Nav items: kill gap/padding so only the icon matters for centering */
.sidebar.collapsed .nav-item {
    justify-content: center;
    gap: 0;
    padding: 11px 0;
}

/* Kill label/badge from layout so they don't affect centering */
.sidebar.collapsed .nav-label {
    width: 0; min-width: 0; overflow: hidden;
    opacity: 0; pointer-events: none;
}
.sidebar.collapsed .nav-badge {
    width: 0; min-width: 0; padding: 0; overflow: hidden; opacity: 0;
}

/* Footer: center avatar and logout icon */
.sidebar.collapsed .sidebar-user-row {
    justify-content: center;
    gap: 0;
    padding: 10px 0;
}
.sidebar.collapsed .sidebar-logout-btn {
    justify-content: center;
    gap: 0;
    padding: 10px 0;
}

/* ── Nav ── */
.sidebar-nav { flex: 1; padding: 10px 10px; overflow-y: auto; overflow-x: hidden; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-section {
    font-size: 9.5px; font-weight: 700;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase; letter-spacing: 1.6px;
    padding: 18px 10px 6px;
    white-space: nowrap;
    transition: opacity 0.2s;
    display: flex; align-items: center; gap: 8px;
}
.sidebar-section::after {
    content: '';
    flex: 1; height: 1px;
    background: rgba(255,255,255,0.06);
    transition: opacity 0.2s;
}
.sidebar.collapsed .sidebar-section { opacity: 0; height: 0; padding: 0; overflow: hidden; }

.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 10px;
    text-decoration: none; color: rgba(255,255,255,0.48);
    font-size: 13.5px; font-weight: 500; margin-bottom: 3px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    white-space: nowrap; position: relative; overflow: hidden;
    cursor: pointer;
}
/* Left accent bar */
.nav-item::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 3px; border-radius: 0 3px 3px 0;
    background: #006bff;
    transform: scaleY(0);
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
    opacity: 0;
}
/* Tooltip (collapsed state) */
.nav-item::after {
    content: attr(data-tooltip);
    position: absolute; left: calc(100% + 14px); top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: #1e293b; color: white;
    font-size: 12px; font-weight: 500;
    padding: 7px 12px; border-radius: 8px;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.07);
}
.sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Click ripple */
.nav-item .nav-ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transform: scale(0); animation: ripple 0.5s linear;
    pointer-events: none;
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.nav-item:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
}
.nav-item.active {
    background: linear-gradient(90deg, rgba(0,107,255,0.22) 0%, rgba(0,107,255,0.08) 100%);
    color: #60a5ff;
    box-shadow: inset 0 0 0 1px rgba(0,107,255,0.18);
}
.nav-item.active::before {
    transform: scaleY(1);
    opacity: 1;
}
.nav-item.active:hover { background: linear-gradient(90deg, rgba(0,107,255,0.28) 0%, rgba(0,107,255,0.12) 100%); }

.nav-icon {
    width: 18px; height: 18px; flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.18s, transform 0.18s;
}
.nav-item:hover .nav-icon { opacity: 0.9; transform: scale(1.08); }
.nav-item.active .nav-icon { opacity: 1; }

.nav-label { transition: opacity 0.22s, transform 0.22s; white-space: nowrap; }

/* Badge */
.nav-badge {
    margin-left: auto; background: #ef4444; color: white;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 20px; flex-shrink: 0;
    transition: opacity 0.18s;
    animation: badgePop 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 0 0 0 rgba(239,68,68,0.5);
    animation: badgePop 0.35s cubic-bezier(0.34,1.56,0.64,1), badgeRing 2.5s 1s ease-in-out infinite;
}
@keyframes badgePop  { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes badgeRing {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50%      { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* ── Footer ── */
.sidebar-footer {
    padding: 8px 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.sidebar-user-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 10px; margin-bottom: 4px;
    overflow: hidden; cursor: default;
    transition: background 0.15s;
}
.sidebar-user-row:hover { background: rgba(255,255,255,0.04); }

/* Online dot */
.sidebar-avatar-wrap { position: relative; flex-shrink: 0; }
.sidebar-avatar {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; font-weight: 700;
    box-shadow: 0 3px 10px rgba(124,58,237,0.35);
}
.sidebar-online-dot {
    position: absolute; bottom: -2px; right: -2px;
    width: 10px; height: 10px;
    background: #22c55e; border-radius: 50%;
    border: 2px solid #0f172a;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%      { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.sidebar-user-info { overflow: hidden; transition: opacity 0.22s, transform 0.22s; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: white; white-space: nowrap; }
.sidebar-user-role {
    font-size: 10.5px; color: rgba(255,255,255,0.32);
    white-space: nowrap;
    display: flex; align-items: center; gap: 4px;
}
.sidebar-user-role::before {
    content: '';
    display: inline-block; width: 5px; height: 5px;
    border-radius: 50%; background: #22c55e;
}
.sidebar.collapsed .sidebar-user-info { opacity: 0; transform: translateX(-6px); width: 0; overflow: hidden; }

.sidebar-logout-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    width: 100%; border: none; background: transparent;
    color: rgba(255,255,255,0.35); font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: inherit; transition: all 0.18s;
    text-align: left; white-space: nowrap; overflow: hidden;
    position: relative;
}
.sidebar-logout-btn:hover {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}
.sidebar-logout-btn:hover svg { transform: translateX(2px); }
.sidebar-logout-btn svg { transition: transform 0.18s; }
.sidebar.collapsed .sidebar-logout-btn .nav-label { opacity: 0; transform: translateX(-6px); width: 0; overflow: hidden; }
/* Logout tooltip */
.sidebar.collapsed .sidebar-logout-btn::after {
    content: 'Logout';
    position: absolute; left: calc(100% + 14px); top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: #1e293b; color: white;
    font-size: 12px; font-weight: 500;
    padding: 7px 12px; border-radius: 8px;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.07);
}
.sidebar.collapsed .sidebar-logout-btn:hover::after {
    opacity: 1; transform: translateY(-50%) translateX(0);
}

/* ── Main content ── */
.admin-main {
    margin-left: 248px; flex: 1; min-height: 100vh;
    display: flex; flex-direction: column;
    transition: margin-left 0.28s cubic-bezier(0.4,0,0.2,1);
}
.sidebar.collapsed ~ .admin-main { margin-left: 70px; }

/* ── Topbar ── */
.admin-topbar {
    background: #fff; border-bottom: 1px solid #E8ECF4;
    padding: 0 28px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100; flex-shrink: 0;
    box-shadow: 0 1px 0 #E8ECF4, 0 2px 8px rgba(0,0,0,0.04);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-page-title { font-size: 17px; font-weight: 700; color: #0F172A; letter-spacing: -0.3px; }

.topbar-mobile-btn {
    display: none; width: 36px; height: 36px;
    border: 1.5px solid #e8e8e8; border-radius: 8px;
    background: none; cursor: pointer;
    align-items: center; justify-content: center;
    color: #555; font-size: 16px; transition: all 0.15s;
}
.topbar-mobile-btn:hover { border-color: #006bff; color: #006bff; }

.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-date {
    font-size: 12px; color: #999;
    background: #f5f7fa; padding: 5px 12px;
    border-radius: 20px; border: 1px solid #ebebeb;
}

.topbar-icon-btn {
    width: 34px; height: 34px;
    border: 1.5px solid #ebebeb; border-radius: 8px;
    background: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #888; font-size: 15px; transition: all 0.15s;
    text-decoration: none;
}
.topbar-icon-btn:hover { border-color: #006bff; color: #006bff; background: #f0f6ff; }

/* ── Help Button ── */
.help-btn {
    width: 34px; height: 34px;
    border: 1.5px solid #E2E8F0; border-radius: 50%;
    background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: #64748B;
    transition: all 0.15s; flex-shrink: 0; user-select: none;
}
.help-btn:hover { border-color: #4F46E5; color: #4F46E5; background: #EEF2FF; }

/* ── Help Modal ── */
.help-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 800; padding: 20px;
    backdrop-filter: blur(2px);
}
.help-modal {
    background: #fff; border-radius: 18px;
    width: 100%; max-width: 520px;
    max-height: 88vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.help-modal-hd {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #F1F5F9;
    position: sticky; top: 0; background: #fff; z-index: 1;
    border-radius: 18px 18px 0 0;
}
.help-modal-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: #EEF2FF; color: #4F46E5;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.help-modal-title { font-size: 16px; font-weight: 700; color: #0F172A; flex: 1; }
.help-modal-body  { padding: 20px 24px 24px; }
.help-section { margin-bottom: 20px; }
.help-section:last-child { margin-bottom: 0; }
.help-section-title {
    font-size: 11px; font-weight: 700; color: #94A3B8;
    text-transform: uppercase; letter-spacing: .7px;
    margin-bottom: 10px;
}
.help-item {
    display: flex; gap: 12px; margin-bottom: 10px;
    padding: 10px 12px; border-radius: 10px;
    background: #F8FAFC; border: 1px solid #F1F5F9;
}
.help-item:last-child { margin-bottom: 0; }
.help-item-icon {
    flex-shrink: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: #EEF2FF; border-radius: 8px;
    color: #4F46E5;
}
.help-item-icon svg { width: 16px; height: 16px; }
.help-item-body {}
.help-item-label { font-size: 13px; font-weight: 600; color: #1E293B; margin-bottom: 2px; }
.help-item-desc  { font-size: 12px; color: #64748B; line-height: 1.55; }

.topbar-env-badge {
    font-size: 11px; font-weight: 600; color: #22c55e;
    background: #e8fff0; padding: 4px 10px;
    border-radius: 20px; border: 1px solid #bbf7d0;
}

/* ── Admin body ── */
.admin-body { padding: 24px 28px; flex: 1; }
.admin-page-title { font-size: 19px; font-weight: 700; color: #0F172A; margin-bottom: 22px; }

/* ── Mobile overlay ── */
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 195;
    backdrop-filter: blur(3px);
}
.sidebar-overlay.visible { display: block; }

@media (max-width: 900px) {
    .sidebar {
        width: 248px !important;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), width 0.25s;
    }
    .sidebar.mobile-open { transform: translateX(0) !important; }
    .admin-main { margin-left: 0 !important; }
    .topbar-mobile-btn { display: flex !important; }
}

/* ══════════════════════════════════════════════════════════
   ADMIN LOGIN PAGE (redesigned)
══════════════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh; display: flex;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    align-items: center; justify-content: center;
    padding: 24px;
    position: relative; overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,107,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124,58,237,0.12) 0%, transparent 50%);
}
.login-card {
    background: white; border-radius: 20px;
    width: 100%; max-width: 420px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    position: relative; z-index: 1;
}
.login-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 32px;
}
.login-logo {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #006bff, #38bdf8);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: white;
    box-shadow: 0 6px 16px rgba(0,107,255,0.4);
}
.login-brand-text .login-brand-name { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.login-brand-text .login-brand-sub  { font-size: 12px; color: #aaa; }
.login-title { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.login-sub   { font-size: 13px; color: #888; margin-bottom: 28px; }

/* ══════════════════════════════════════════════════════════
   FILTER TABS  (dashboard)
══════════════════════════════════════════════════════════ */
.filter-tabs {
    display: flex; gap: 2px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px; padding: 3px;
    margin-bottom: 20px; width: fit-content;
}
.filter-tab {
    padding: 7px 16px; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    color: #64748B; background: none; transition: all 0.15s;
    white-space: nowrap; letter-spacing: -0.1px;
}
.filter-tab.active {
    background: #fff; color: #4F46E5; font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}
.filter-tab:hover:not(.active) { color: #1E293B; background: rgba(255,255,255,0.6); }

.dashboard-controls {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 10px;
    margin-bottom: 16px;
}
.controls-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.export-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: #4F46E5; color: #fff;
    border: none; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: background 0.15s; white-space: nowrap;
    box-shadow: 0 1px 3px rgba(79,70,229,0.3);
}
.export-btn:hover { background: #4338CA; }

/* ── Status Badges (overrides — keep in sync with .badge-* below) ── */
.badge-pending    { background: #FEF9C3; color: #92400E; }
.badge-in_process { background: #DBEAFE; color: #1E40AF; }
.badge-completed  { background: #DCFCE7; color: #166534; }
.badge-cancelled  { background: #FEE2E2; color: #991B1B; }
.badge-overdue    { background: #FEE2E2; color: #B91C1C; }
.badge-due_now    { background: #FEF3C7; color: #92400E; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.65} }

/* ── Inline Notes Row ── */
.notes-cell { max-width: 135px; }
.notes-preview {
    font-size: 11.5px; color: #64748B; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 130px;
    cursor: pointer; padding: 3px 0;
}
.notes-preview:hover { color: #4F46E5; }

/* ── Action button sizes ── */
.act-sm {
    padding: 5px 0; border-radius: 7px; font-size: 12px;
    font-weight: 500; border: 1.5px solid transparent;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
    min-width: 90px; text-align: center;
}
.act-complete { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.act-complete:hover { background: #DCFCE7; border-color: #86EFAC; }
.act-resched  { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.act-resched:hover  { background: #DBEAFE; border-color: #93C5FD; }
.act-sm.act-cancel  { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }
.act-sm.act-cancel:hover { background: #FFEDD5; border-color: #FDBA74; }
.act-sm.act-delete  { background: #FFF1F2; color: #BE123C; border-color: #FECDD3; }
.act-sm.act-delete:hover { background: #FFE4E6; }
.act-sm.act-edit    { background: #F8FAFC; color: #475569; border-color: #E2E8F0; }
.act-sm.act-edit:hover  { background: #F1F5F9; border-color: #CBD5E1; }
.act-sm.act-notes   { background: #FEFCE8; color: #854D0E; border-color: #FEF08A; padding: 5px 8px; }
.act-sm.act-notes:hover { background: #FEF9C3; }
.act-sm:disabled    { opacity: 0.4; cursor: not-allowed; }

/* ── Reschedule / Notes Modal ── */
.sm-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 700; padding: 20px;
}
.sm-modal {
    background: #fff; border-radius: 14px;
    width: 100%; max-width: 520px;
    max-height: 88vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.sm-modal-hd {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid #f0f0f0;
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.sm-modal-title { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.sm-modal-body  { padding: 20px 22px; }
.sm-modal-ft    { padding: 14px 22px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; }

/* ── Break / Override rows ── */
.list-row {
    display: flex; align-items: center; gap: 8px;
    background: #f8f9fa; border-radius: 8px;
    padding: 10px 12px; margin-bottom: 8px;
}
.list-row input { flex: 1; min-width: 0; }
.list-row .remove-btn {
    background: none; border: none; color: #ccc;
    font-size: 18px; cursor: pointer; padding: 0 4px;
    flex-shrink: 0; line-height: 1;
}
.list-row .remove-btn:hover { color: #e53e3e; }
.list-row-label {
    font-size: 11px; font-weight: 600; color: #aaa;
    white-space: nowrap; min-width: 40px;
}

/* Reminder hour checkboxes */
.reminder-grid {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.reminder-opt {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1.5px solid #e0e0e0;
    border-radius: 20px; cursor: pointer;
    font-size: 12px; font-weight: 500; color: #555;
    transition: all 0.15s; user-select: none;
}
.reminder-opt input { display: none; }
.reminder-opt.checked { border-color: #006bff; background: #e8f0ff; color: #006bff; }

/* Booking detail pill */
.booking-info-pill {
    background: #f8f9fa; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 16px;
    font-size: 13px; color: #333;
}
.booking-info-pill strong { color: #1a1a2e; }

/* ══════════════════════════════════════════════════════════
   MODAL (Event form)
══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.52);
    display: flex; align-items: center; justify-content: center;
    z-index: 600; padding: 20px;
}
.modal-box {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 700px;
    max-height: 90vh; display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.modal-hd {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.modal-hd-title { font-size: 17px; font-weight: 700; color: #1a1a2e; }
.modal-close {
    width: 30px; height: 30px; border: none;
    background: #f5f5f5; border-radius: 50%;
    font-size: 17px; cursor: pointer; color: #666;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.modal-close:hover { background: #ebebeb; }

/* Tabs */
.modal-tabs {
    display: flex; border-bottom: 1px solid #f0f0f0;
    padding: 0 24px; flex-shrink: 0;
}
.tab-btn {
    padding: 11px 14px; border: none; background: none;
    font-size: 13px; font-weight: 500; color: #aaa;
    cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: all 0.15s;
}
.tab-btn.active { color: #006bff; border-bottom-color: #006bff; }
.tab-btn:hover:not(.active) { color: #555; }

.modal-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.modal-ft {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.cancel-btn {
    padding: 10px 20px; border: 1.5px solid #e0e0e0;
    border-radius: 8px; background: #fff;
    font-size: 13px; color: #555; cursor: pointer;
    transition: all 0.15s;
}
.cancel-btn:hover { border-color: #bbb; }

/* Form section divider inside modal */
.form-section-title {
    font-size: 11px; font-weight: 700; color: #aaa;
    text-transform: uppercase; letter-spacing: 0.6px;
    margin: 20px 0 12px; padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.toggle-switch {
    position: relative; width: 44px; height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #ddd; border-radius: 24px;
    cursor: pointer; transition: background 0.2s;
}
.toggle-slider::after {
    content: ''; position: absolute;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    top: 3px; left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #006bff; }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(20px); }
.toggle-label { font-size: 13px; font-weight: 500; color: #333; }

/* Password toggle */
.pass-wrap { position: relative; }
.pass-toggle {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #aaa; font-size: 13px; padding: 4px;
}
.pass-toggle:hover { color: #555; }

/* ── Host Profile Card (Events page) ── */
.profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #EEF2F8;
    margin-bottom: 22px;
}
.profile-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.profile-name { font-size: 16px; font-weight: 700; color: #0F172A; }
.profile-msg  {
    font-size: 12px; color: #64748B; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px;
}
.profile-site { font-size: 11.5px; color: #94A3B8; margin-top: 4px; }

/* Events grid */
.events-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.event-card {
    background: #fff; border-radius: 12px;
    padding: 20px; border: 1px solid #ebebeb;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s;
}
.event-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.event-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.event-card-dot { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.event-card-title { font-size: 14px; font-weight: 600; color: #1a1a2e; line-height: 1.3; margin-bottom: 2px; }
.event-card-meta { font-size: 12px; color: #aaa; }
.event-card-slug { font-size: 11px; color: #ccc; margin-bottom: 14px; font-family: monospace; }
.event-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-link {
    padding: 5px 11px; border-radius: 5px;
    font-size: 12px; font-weight: 500;
    background: #e8f0ff; color: #006bff;
    text-decoration: none; transition: background 0.15s;
}
.preview-link:hover { background: #d0e4ff; }

/* SMTP fields hide/show */
#smtpFields { margin-top: 12px; }

@media (max-width: 780px) {
    .events-grid { grid-template-columns: 1fr 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .events-grid { grid-template-columns: 1fr; }
    .modal-box { border-radius: 12px; }
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f1f3;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Loading overlay ───────────────────────────────────── */
#loading {
    position: fixed; inset: 0;
    background: #f0f1f3;
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    transition: opacity 0.25s;
}
#loading.hidden { opacity: 0; pointer-events: none; }

.spinner {
    width: 42px; height: 42px;
    border: 3px solid #e8ecff;
    border-top-color: #006bff;
    border-right-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Page center ───────────────────────────────────────── */
.page-center {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 28px 16px;
}

/* ══════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════ */
.landing-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.1);
    width: 100%; max-width: 560px;
    padding: 42px 40px 28px;
    position: relative;
    overflow: hidden;
}

/* Corner badge removed */
.corner-badge, .corner-badge-inner { display: none !important; }

.host-section { text-align: center; margin-bottom: 22px; }
.host-name {
    font-size: 22px; font-weight: 600;
    color: #4a90d9; margin-bottom: 10px;
}
.host-message {
    font-size: 14px; color: #666;
    line-height: 1.75; max-width: 380px; margin: 0 auto;
}

.divider { border: none; border-top: 1px solid #ebebeb; margin: 20px 0; }

.event-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 12px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
    text-decoration: none; color: inherit;
}
.event-item:hover { background: #f5f7ff; }

.event-item-title { font-size: 15px; font-weight: 500; color: #222; flex: 1; }
.event-item-arrow { color: #555; font-size: 13px; }

.landing-footer { margin-top: 28px; }
.footer-link { font-size: 13px; color: #006bff; }
.footer-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   TWO-PANEL LAYOUT  (event.html + booking.html)
══════════════════════════════════════════════════════════ */
.two-panel-page {
    min-height: 100vh;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 40px 16px;
}

.two-panel-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.1);
    display: flex;
    width: 100%; max-width: 920px;
    min-height: 580px;
    position: relative;
    overflow: hidden;
}

/* ── Left panel ── */
.left-panel {
    width: 285px; flex-shrink: 0;
    padding: 28px 24px;
    border-right: 1px solid #ebebeb;
}

.back-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1.5px solid #ccc; border-radius: 50%;
    font-size: 20px; color: #444;
    background: none; margin-bottom: 20px;
    transition: all 0.15s; text-decoration: none;
    line-height: 1;
}
.back-btn:hover { border-color: #006bff; color: #006bff; }

.panel-host { font-size: 12px; font-weight: 600; color: #4a90d9; margin-bottom: 5px; }
.panel-title {
    font-size: 21px; font-weight: 700;
    color: #1a1a2e; margin-bottom: 18px; line-height: 1.3;
}

.meta-list { list-style: none; margin-bottom: 16px; }
.meta-list li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13px; color: #555; margin-bottom: 11px;
}
.meta-icon { width: 15px; flex-shrink: 0; color: #888; margin-top: 1px; }
.meta-icon svg { display: block; }

.event-desc { font-size: 13px; color: #a05800; line-height: 1.75; }

/* ── Right panel ── */
.right-panel { flex: 1; padding: 28px; min-width: 0; }
.right-title {
    font-size: 17px; font-weight: 600;
    color: #1a1a2e; margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════
   CALENDAR
══════════════════════════════════════════════════════════ */
.date-time-wrapper { display: flex; gap: 0; }

.cal-section { flex: 1; min-width: 0; padding-right: 16px; }

.cal-nav {
    display: flex; align-items: center;
    justify-content: center; gap: 10px;
    margin-bottom: 14px;
}
.cal-nav-btn {
    background: none; border: none;
    font-size: 24px; color: #333;
    padding: 0 6px; line-height: 1;
    border-radius: 4px; transition: background 0.15s;
}
.cal-nav-btn:hover { background: #f0f0f0; }
.cal-nav-btn:disabled { color: #ccc; cursor: default; }
.cal-nav-btn:disabled:hover { background: none; }

.cal-month-title {
    font-size: 16px; font-weight: 600;
    color: #1a1a2e; min-width: 165px; text-align: center;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 14px;
}
.cal-hdr {
    text-align: center;
    font-size: 11px; font-weight: 600;
    color: #aaa; padding: 6px 0;
    letter-spacing: 0.4px;
}
.cal-cell {
    display: flex; align-items: center; justify-content: center;
    padding: 3px 0; position: relative;
}
.cal-btn {
    width: 36px; height: 36px;
    border-radius: 50%; border: none;
    background: none; font-size: 13px;
    color: #ccc; cursor: default;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; transition: all 0.15s;
    position: relative;
}
.cal-cell.avail .cal-btn  { color: #006bff; cursor: pointer; }
.cal-cell.avail .cal-btn:hover { background: #e8f0ff; }

/* Calendar disabled (no hosts assigned) — overrides all avail styles */
.cal-no-hosts .cal-cell.avail .cal-btn {
    color: #ccc !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
.cal-no-hosts .cal-cell.avail .cal-btn:hover {
    background: none !important;
}
.cal-no-hosts .cal-nav-btn { opacity: .4; pointer-events: none; }
.cal-cell.selected .cal-btn { background: #006bff; color: #fff; }

/* today dot */
.cal-cell.today .cal-btn::after {
    content: '';
    position: absolute; bottom: 3px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%; background: #006bff;
}
.cal-cell.selected.today .cal-btn::after { background: #fff; }

/* timezone */
.tz-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #666; margin-top: 6px;
}
.tz-row svg { color: #888; }

/* ══════════════════════════════════════════════════════════
   TIME SLOTS
══════════════════════════════════════════════════════════ */
.slots-section {
    width: 190px; flex-shrink: 0;
    border-left: 1px solid #f0f0f0;
    padding-left: 18px;
    display: none;
}
.slots-section.visible { display: block; }

.slots-date-hd {
    font-size: 13px; font-weight: 600;
    color: #1a1a2e; margin-bottom: 12px;
}
.slots-list {
    display: flex; flex-direction: column;
    gap: 8px; max-height: 430px;
    overflow-y: auto; padding-right: 4px;
}
.slots-list::-webkit-scrollbar { width: 4px; }
.slots-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.slot-btn {
    width: 100%; padding: 11px 10px;
    border: 1.5px solid #d0d5dd; border-radius: 6px;
    background: #fff; font-size: 13px;
    color: #006bff; font-weight: 500;
    cursor: pointer; text-align: center;
    transition: all 0.15s;
}
.slot-btn:hover { border-color: #006bff; background: #f0f6ff; }

.slot-pair { display: flex; gap: 6px; }
.slot-label {
    flex: 1; padding: 11px 8px;
    border: 1.5px solid #e0e0e0; border-radius: 6px;
    background: #f5f5f5; font-size: 13px;
    color: #555; font-weight: 500; text-align: center;
}
.slot-next {
    flex: 1; padding: 11px 8px;
    border: none; border-radius: 6px;
    background: #006bff; color: #fff;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
}
.slot-next:hover { background: #0054cc; }

/* ══════════════════════════════════════════════════════════
   BOOKING FORM
══════════════════════════════════════════════════════════ */
.form-title { font-size: 17px; font-weight: 600; color: #1a1a2e; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: #333; margin-bottom: 5px; }
.form-label .req { color: #e53e3e; }

.form-input, .form-textarea {
    width: 100%; padding: 10px 13px;
    border: 1.5px solid #d0d5dd; border-radius: 8px;
    font-size: 14px; color: #333;
    background: #fff; transition: border-color 0.15s;
    font-family: inherit;
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: #006bff;
    box-shadow: 0 0 0 3px rgba(0,107,255,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }

.guests-btn {
    padding: 7px 16px;
    border: 1.5px solid #d0d5dd; border-radius: 20px;
    background: none; font-size: 13px;
    color: #444; transition: all 0.15s;
}
.guests-btn:hover { border-color: #006bff; color: #006bff; }

.guests-input-wrap { display: none; margin-top: 10px; }
.guests-input-wrap.visible { display: block; }

.check-group { display: flex; flex-direction: column; gap: 10px; }
.check-label {
    display: flex; align-items: center;
    gap: 9px; font-size: 14px;
    color: #333; cursor: pointer;
}
.check-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #006bff; cursor: pointer;
}

.form-terms {
    font-size: 12px; color: #999;
    margin-bottom: 18px; line-height: 1.65;
}
.form-terms a { color: #006bff; }
.form-terms a:hover { text-decoration: underline; }

.submit-btn {
    padding: 13px 28px;
    background: #006bff; color: #fff;
    border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
    width: 100%;
}
.submit-btn:hover { background: #0054cc; }
.submit-btn:disabled { background: #94b8ff; cursor: not-allowed; }

.form-err-box {
    background: #fff5f5; border: 1px solid #fc8181;
    border-radius: 8px; padding: 11px 15px;
    font-size: 13px; color: #c53030;
    margin-bottom: 16px; display: none;
}

/* ══════════════════════════════════════════════════════════
   CONFIRMATION PAGE
══════════════════════════════════════════════════════════ */
.confirm-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.1);
    width: 100%; max-width: 540px;
    padding: 48px 40px; text-align: center;
    position: relative; overflow: hidden;
}
.confirm-icon {
    width: 64px; height: 64px;
    background: #e8fff0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 28px;
}
.confirm-title { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.confirm-sub   { font-size: 14px; color: #777; margin-bottom: 28px; }

.confirm-box {
    background: #f8f9fa; border-radius: 12px;
    padding: 20px; text-align: left; margin-bottom: 22px;
}
.confirm-row {
    display: flex; align-items: flex-start;
    gap: 12px; margin-bottom: 12px;
    font-size: 13px; color: #333;
}
.confirm-row:last-child { margin-bottom: 0; }
.confirm-icon-sm { width: 15px; height: 15px; flex-shrink: 0; color: #888; margin-top: 1px; }
.confirm-val { font-weight: 500; }

.confirm-id { font-size: 12px; color: #bbb; margin-bottom: 24px; }

.new-btn {
    display: inline-block; padding: 12px 28px;
    background: #006bff; color: #fff;
    border-radius: 8px; font-size: 14px;
    font-weight: 600; transition: background 0.15s;
}
.new-btn:hover { background: #0054cc; }

/* ══════════════════════════════════════════════════════════
   ADMIN — LOGIN
══════════════════════════════════════════════════════════ */
.admin-login-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.1);
    width: 100%; max-width: 400px; padding: 42px;
}
.admin-login-title  { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.admin-login-sub    { font-size: 13px; color: #999; margin-bottom: 28px; }

/* ══════════════════════════════════════════════════════════
   ADMIN — LAYOUT
══════════════════════════════════════════════════════════ */
.admin-wrap { min-height: 100vh; background: #f0f1f3; }

.admin-nav {
    background: #1a1a2e; color: #fff;
    padding: 0 28px; height: 54px;
    display: flex; align-items: center; gap: 24px;
}
.admin-brand { font-size: 17px; font-weight: 700; margin-right: auto; }
.nav-link {
    font-size: 14px; color: #aaa;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: #fff; border-bottom-color: #006bff; }
.nav-logout {
    font-size: 13px; color: #ff7070;
    background: none; border: none;
    cursor: pointer; font-family: inherit;
}
.nav-logout:hover { color: #ff4444; }

.admin-body { max-width: 1120px; margin: 0 auto; padding: 28px 24px; }
.admin-page-title { font-size: 19px; font-weight: 700; color: #1a1a2e; margin-bottom: 22px; }

/* ── Stats Grid ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px; margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex; align-items: center; gap: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #EEF2F8;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: default;
}
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 12px 28px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.stat-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.si-blue  { background: #EEF2FF; color: #4F46E5; }
.si-amber { background: #FFFBEB; color: #D97706; }
.si-green { background: #ECFDF5; color: #059669; }
.stat-body { flex: 1; min-width: 0; }
.stat-val  { font-size: 32px; font-weight: 800; color: #0F172A; line-height: 1.1; letter-spacing: -1px; }
.stat-label { font-size: 12.5px; color: #64748B; font-weight: 500; margin-top: 3px; }

/* ── Table Card ── */
.table-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #EEF2F8;
    overflow: hidden;
}
.table-top {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #F1F5F9;
}
.table-top h2 { font-size: 15px; font-weight: 600; color: #0F172A; }

.filter-sel {
    padding: 7px 12px;
    border: 1.5px solid #E2E8F0; border-radius: 8px;
    font-size: 13px; color: #374151;
    background: #fff; cursor: pointer;
    transition: border-color 0.15s;
}
.filter-sel:focus { outline: none; border-color: #4F46E5; }

/* ── Data Table ── */
.data-tbl { width: 100%; border-collapse: collapse; }
.data-tbl th {
    padding: 11px 16px; text-align: left;
    font-size: 10.5px; font-weight: 700;
    color: #94A3B8; text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #F1F5F9;
    background: #F8FAFC;
    white-space: nowrap;
}
.data-tbl td {
    padding: 13px 16px; font-size: 13px;
    color: #374151; border-bottom: 1px solid #F8FAFC;
    vertical-align: middle;
}
.data-tbl tr:last-child td { border-bottom: none; }
.data-tbl tbody tr { transition: background 0.12s; }
.data-tbl tbody tr:hover td { background: #F5F8FF; }

/* ── Status Badges (pill style with dot) ── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: currentColor; flex-shrink: 0;
}
.badge-pending    { background: #FEF9C3; color: #92400E; }
.badge-in_process { background: #DBEAFE; color: #1E40AF; }
.badge-completed  { background: #DCFCE7; color: #166534; }
.badge-cancelled  { background: #FEE2E2; color: #991B1B; }

/* ── Action Buttons ── */
.act-btn {
    padding: 5px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 500;
    border: 1.5px solid transparent; cursor: pointer; transition: all 0.15s;
}
.act-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.empty-state {
    text-align: center; padding: 56px 20px;
    color: #94A3B8; font-size: 14px;
}
.empty-state::before {
    content: '📭'; display: block; font-size: 36px; margin-bottom: 12px;
}

/* ── Settings ── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.settings-card {
    background: #fff; border-radius: 12px;
    padding: 24px; box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.settings-card-title {
    font-size: 14px; font-weight: 600; color: #1a1a2e;
    margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.settings-row { margin-bottom: 15px; }
.settings-label {
    display: block; font-size: 11px;
    font-weight: 600; color: #888;
    margin-bottom: 5px; text-transform: uppercase;
    letter-spacing: 0.4px;
}
.settings-input, .settings-select, .settings-textarea {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid #e0e0e0; border-radius: 8px;
    font-size: 14px; color: #333;
    background: #fff; font-family: inherit;
    transition: border-color 0.15s;
}
.settings-input:focus, .settings-select:focus, .settings-textarea:focus {
    outline: none; border-color: #006bff;
}
.settings-textarea { resize: vertical; min-height: 72px; }

.days-row { display: flex; gap: 6px; flex-wrap: wrap; }
.day-tog {
    padding: 6px 12px;
    border: 1.5px solid #e0e0e0; border-radius: 20px;
    font-size: 12px; font-weight: 500;
    background: #fff; color: #666; cursor: pointer;
    transition: all 0.15s;
}
.day-tog.on { border-color: #006bff; background: #e8f0ff; color: #006bff; }

.blocked-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.blocked-tag {
    display: flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    background: #f5f5f5; border-radius: 20px;
    font-size: 12px; color: #555;
}
.blocked-tag button {
    background: none; border: none;
    color: #aaa; cursor: pointer;
    font-size: 15px; line-height: 1; padding: 0;
}
.blocked-tag button:hover { color: #e53e3e; }

.save-btn {
    padding: 11px 28px;
    background: #006bff; color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
    margin-top: 8px;
}
.save-btn:hover { background: #0054cc; }

/* Toast */
.toast {
    position: fixed; bottom: 24px; right: 24px;
    background: #1a1a2e; color: #fff;
    padding: 12px 20px; border-radius: 8px;
    font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: translateY(80px); opacity: 0;
    transition: all 0.3s; z-index: 999;
    pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #c62828; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD TABLE — COLUMN WIDTHS & CELL STYLES
══════════════════════════════════════════════════════════ */

.col-id      { width: 96px;  }
.col-event   { width: 125px; }
.col-contact { width: 200px; }
.col-dt      { width: 118px; }
.col-lang    { width: 85px;  }
.col-firm    { width: 118px; }
.col-status  { width: 112px; }
.col-notes   { width: 135px; }
.col-actions { width: 180px; }

/* Booking ID chip */
.cell-id {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px; font-weight: 700;
    background: #F1F5F9; color: #475569;
    padding: 4px 9px; border-radius: 6px;
    letter-spacing: 0.5px; white-space: nowrap;
    border: 1px solid #E2E8F0;
}

/* Name / Contact stack */
.cn-name  { font-size: 13px; font-weight: 600; color: #0F172A; line-height: 1.3; }
.cn-email { font-size: 11.5px; color: #94A3B8; margin-top: 3px; }
.cn-phone { font-size: 11.5px; color: #94A3B8; margin-top: 1px; }

/* Event cell */
.cell-event {
    font-size: 12.5px; color: #475569; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; max-width: 123px; display: block;
}

/* Date & Time stack */
.dt-date { font-size: 13px; font-weight: 600; color: #0F172A; white-space: nowrap; }
.dt-time { font-size: 12px; color: #64748B; margin-top: 3px; white-space: nowrap; }
.dt-prev { font-size: 10.5px; color: #CBD5E1; margin-top: 2px; white-space: nowrap; }

/* Firm / City stack */
.cell-firm { font-size: 12.5px; color: #334155; font-weight: 500; }
.cell-city { font-size: 11.5px; color: #94A3B8; margin-top: 2px; }

/* Language */
.cell-lang { font-size: 12.5px; color: #475569; }

/* Action button group */
.act-group { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 780px) {
    .two-panel-card { flex-direction: column; }
    .left-panel { width: 100%; border-right: none; border-bottom: 1px solid #ebebeb; }
    .date-time-wrapper { flex-direction: column; }
    .slots-section { border-left: none; border-top: 1px solid #f0f0f0; padding-left: 0; padding-top: 16px; width: 100%; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .landing-card { padding: 32px 24px 22px; }
    .two-panel-page { padding: 20px 12px; }
}
@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
    .cal-btn { width: 30px; height: 30px; font-size: 12px; }
    .admin-nav { padding: 0 16px; }
}

/* ── Pro Appointment – Host System Styles ─────────────── */

/* Small host avatar (used in event cards & host checklist) */
.host-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* Host checklist row in event modal */
.host-check-row:hover { border-color: #c7d7fd !important; }

/* Slot host-count badge (green pill on slot buttons) */
.slot-btn .slot-host-badge {
    font-size: 10px;
    font-weight: 600;
    color: #22c55e;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Host portal sidebar accent */
.sidebar-logo {
    font-size: 13px;
    letter-spacing: -0.5px;
}

/* Transfer button in bookings table */
.act-transfer {
    background: #fff7ed;
    color: #c2410c;
    border: 1.5px solid #fed7aa;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background .15s;
}
.act-transfer:hover { background: #ffedd5; }

/* Host name chip in bookings table */
.host-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f4ff;
    border: 1px solid #c7d7fd;
    color: #3730a3;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 600;
}
.host-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Leave calendar styles */
.leave-badge {
    display: inline-block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

/* Panel title without host name (updated left panel) */
.panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Green stat icon */
.si-green {
    background: #dcfce7;
}
.si-green svg {
    stroke: #16a34a;
}

/* Host portal login page center card overrides */
.page-center .landing-card {
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

/* ══════════════════════════════════════════════════════════
   PUBLIC BOOKING PAGES — ENHANCED UI
══════════════════════════════════════════════════════════ */

/* ── Page backgrounds ────────────────────────────────────── */
.two-panel-page {
    background: linear-gradient(135deg, #eef2ff 0%, #f3eeff 55%, #fce8ff 100%);
    min-height: 100vh;
}
.page-center {
    background: linear-gradient(135deg, #eef2ff 0%, #f3eeff 55%, #fce8ff 100%);
}

/* ── Card entry animation ─────────────────────────────────── */
@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(22px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.two-panel-card,
.landing-card,
.confirm-card {
    animation: cardFadeUp 0.42s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
.two-panel-card {
    max-width: 940px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
}
.landing-card {
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}

/* ── Left panel gradient + accent strip ─────────────────── */
.left-panel {
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
    position: relative;
}
.left-panel::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #006bff 0%, #7c3aed 100%);
    border-radius: 16px 0 0 0;
    pointer-events: none;
}

/* ── Back button ─────────────────────────────────────────── */
.back-btn {
    background: #eff4ff;
    border-color: #c7d7fd;
    color: #3b5bdb;
    transition: all 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.back-btn:hover {
    background: #006bff;
    border-color: #006bff;
    color: #fff;
    transform: scale(1.1);
}

/* ── Step indicator ──────────────────────────────────────── */
.step-indicator {
    display: flex; align-items: center; gap: 5px;
    margin-bottom: 18px;
}
.step-dot {
    height: 6px; width: 6px; border-radius: 3px;
    background: #dde1f0;
    transition: all 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.step-dot.active {
    width: 22px;
    background: linear-gradient(90deg, #006bff, #5b5ef5);
}
.step-dot.done { background: #22c55e; }
.step-label {
    font-size: 11px; color: #94a3b8; font-weight: 500;
    margin-left: 6px; letter-spacing: 0.2px;
}

/* ── Calendar month title gradient text ─────────────────── */
.cal-month-title {
    background: linear-gradient(90deg, #1a1a2e 0%, #3730a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ── Calendar day cells ───────────────────────────────────── */
.cal-cell.avail .cal-btn {
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cal-cell.avail .cal-btn:hover {
    background: #eff4ff;
    transform: scale(1.18);
    box-shadow: 0 2px 8px rgba(0,107,255,0.18);
}
.cal-cell.selected .cal-btn {
    background: linear-gradient(135deg, #006bff 0%, #5b5ef5 100%);
    box-shadow: 0 4px 14px rgba(0,107,255,0.38);
    transform: scale(1.1);
    color: #fff;
}

/* ── Timezone pill ─────────────────────────────────────────── */
.tz-row {
    display: inline-flex;
    background: #f8faff;
    border: 1px solid #e0e9ff;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 12px;
    gap: 6px;
    align-items: center;
}

/* ── Slots section slide-in ───────────────────────────────── */
@keyframes slideInSlots {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.slots-section.visible {
    display: block;
    animation: slideInSlots 0.35s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

/* ── Slot date heading ─────────────────────────────────────── */
.slots-date-hd {
    font-size: 11.5px; font-weight: 700;
    color: #64748b; text-transform: uppercase;
    letter-spacing: 0.7px; margin-bottom: 14px;
}

/* ── Slot buttons ─────────────────────────────────────────── */
.slot-btn {
    position: relative; overflow: hidden;
    border-radius: 10px; font-weight: 600;
    letter-spacing: -0.2px;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.slot-btn:hover {
    border-color: #6b8cff;
    background: linear-gradient(90deg, #eff4ff 0%, #fff 100%);
    box-shadow: 0 2px 10px rgba(0,107,255,0.14);
    transform: translateY(-1px);
}
.slot-btn:active { transform: translateY(0); }

/* ── Slot skeleton loader ─────────────────────────────────── */
@keyframes shimmerLoad {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.slot-skeleton {
    height: 42px; border-radius: 10px; margin-bottom: 8px;
    background: linear-gradient(90deg, #f1f3f9 25%, #e4e8f4 50%, #f1f3f9 75%);
    background-size: 200% 100%;
    animation: shimmerLoad 1.4s infinite linear;
}

/* ── Slot pair (selected state) ───────────────────────────── */
@keyframes slotExpand {
    from { opacity: 0; transform: scaleY(0.85); }
    to   { opacity: 1; transform: scaleY(1); }
}
.slot-pair { animation: slotExpand 0.22s cubic-bezier(0.34, 1.2, 0.64, 1); }
.slot-label {
    background: #eff4ff; border-color: #c7d7fd;
    color: #1e40af; font-weight: 600; border-radius: 10px;
}
.slot-next {
    background: linear-gradient(135deg, #006bff 0%, #5b5ef5 100%);
    box-shadow: 0 3px 10px rgba(0,107,255,0.3);
    font-weight: 700; border-radius: 10px;
    transition: all 0.2s;
}
.slot-next:hover {
    background: linear-gradient(135deg, #0054cc 0%, #4747e0 100%);
    box-shadow: 0 5px 16px rgba(0,107,255,0.42);
    transform: translateY(-1px);
}

/* ── Submit button gradient ───────────────────────────────── */
.submit-btn {
    background: linear-gradient(135deg, #006bff 0%, #5b5ef5 100%);
    box-shadow: 0 4px 14px rgba(0,107,255,0.28);
    border-radius: 10px; font-weight: 700;
    letter-spacing: -0.2px;
    transition: all 0.2s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0054cc 0%, #4747e0 100%);
    box-shadow: 0 6px 20px rgba(0,107,255,0.38);
    transform: translateY(-2px);
}
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { background: #94b8ff; box-shadow: none; }

/* ── Form input focus enhancement ────────────────────────── */
.form-input:focus, .form-textarea:focus {
    border-color: #6b8cff;
    box-shadow: 0 0 0 3.5px rgba(0,107,255,0.10);
}

/* ── Guest email button ───────────────────────────────────── */
.guests-btn {
    background: #f5f8ff; border-color: #c7d7fd;
    color: #3730a3; font-weight: 500;
    transition: all 0.15s;
}
.guests-btn:hover { background: #e8f0ff; border-color: #93c5fd; }

/* ── Landing: event item cards ────────────────────────────── */
.event-item {
    border: 1.5px solid transparent;
    border-radius: 14px;
    transition: all 0.22s cubic-bezier(0.34, 1.1, 0.64, 1);
    padding: 15px 14px;
}
.event-item:hover {
    background: linear-gradient(90deg, #eff4ff 0%, #f5f0ff 100%);
    border-color: #c7d7fd;
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0,107,255,0.08);
}
.event-item-title { transition: color 0.15s; font-weight: 600; }
.event-item:hover .event-item-title { color: #006bff; }
.event-item-arrow {
    width: 30px; height: 30px;
    background: #f0f4ff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #6b8cff; font-size: 10px; flex-shrink: 0;
    transition: all 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.event-item:hover .event-item-arrow {
    background: #006bff; color: #fff;
    transform: translateX(3px) scale(1.1);
}

/* ── Event dot circle with initials ───────────────────────── */
.event-dot {
    width: 42px !important; height: 42px !important;
    min-width: 42px; min-height: 42px;
    border-radius: 50% !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
    line-height: 1; text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    user-select: none;
    overflow: hidden;
}

/* ── Landing card top accent strip ───────────────────────── */
.landing-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #006bff 0%, #7c3aed 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

/* ── Confirmation icon ────────────────────────────────────── */
.confirm-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 0 8px 24px rgba(34,197,94,0.22);
    border: 3px solid rgba(34,197,94,0.15);
    width: 72px; height: 72px;
}

/* ── Confirm card top accent ──────────────────────────────── */
.confirm-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #006bff 0%, #7c3aed 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

/* ── New booking button ───────────────────────────────────── */
.new-btn {
    background: linear-gradient(135deg, #006bff 0%, #5b5ef5 100%);
    box-shadow: 0 4px 14px rgba(0,107,255,0.28);
    border-radius: 10px; font-weight: 700;
    transition: all 0.2s cubic-bezier(0.34, 1.1, 0.64, 1);
    display: inline-block; padding: 13px 30px; color: #fff;
}
.new-btn:hover {
    background: linear-gradient(135deg, #0054cc 0%, #4747e0 100%);
    box-shadow: 0 6px 20px rgba(0,107,255,0.38);
    transform: translateY(-2px); color: #fff;
}
.new-btn:active { transform: translateY(0); }

/* ── Right title ──────────────────────────────────────────── */
.right-title {
    font-size: 18px; font-weight: 700;
    color: #1a1a2e; margin-bottom: 20px;
}
.form-title {
    font-size: 18px; font-weight: 700;
    color: #1a1a2e; margin-bottom: 20px;
}

/* ── Confirm title ────────────────────────────────────────── */
.confirm-title { font-size: 23px; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.confirm-sub   { font-size: 14px; color: #64748b; margin-bottom: 28px; }

/* ══════════════════════════════════════════════════════════
   PREMIUM UI OVERHAUL — event.html
══════════════════════════════════════════════════════════ */

/* ── Left panel rich background ──────────────────────────── */
.left-panel {
    background: linear-gradient(160deg, #eef2ff 0%, #ede9fe 60%, #fce7f3 100%);
    overflow: hidden;
}
/* Decorative glow blob bottom-right */
.left-panel::after {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.13) 0%, transparent 65%);
    bottom: -60px; right: -60px;
    pointer-events: none;
    z-index: 0;
}
.left-panel > * { position: relative; z-index: 1; }

/* ── Panel title ──────────────────────────────────────────── */
.panel-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    line-height: 1.22 !important;
    color: #0f172a !important;
    margin-bottom: 18px !important;
}

/* ── Meta list items as frosted cards ────────────────────── */
.meta-list li {
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(99,102,241,0.14);
    border-radius: 10px;
    padding: 9px 12px !important;
    backdrop-filter: blur(6px);
    font-weight: 500 !important;
    color: #334155 !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.meta-icon { color: #6366f1 !important; }

/* ── Event description box ────────────────────────────────── */
.event-desc {
    background: rgba(255,255,255,0.55) !important;
    border-left: 3px solid #7c3aed !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 10px 12px !important;
    font-size: 12.5px !important;
    color: #6d28d9 !important;
    line-height: 1.75 !important;
    backdrop-filter: blur(4px);
}

/* ── Date-time wrapper layout ─────────────────────────────── */
.date-time-wrapper { gap: 16px; align-items: flex-start; }

/* ── Calendar section card ────────────────────────────────── */
.cal-section {
    padding-right: 0 !important;
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px 14px !important;
    border: 1px solid #eef2ff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

/* ── Calendar nav buttons: circle style ───────────────────── */
.cal-nav { margin-bottom: 16px !important; }
.cal-nav-btn {
    width: 34px !important; height: 34px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    color: #64748b;
    background: #f8faff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.22s cubic-bezier(0.34,1.3,0.64,1) !important;
}
.cal-nav-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #006bff, #7c3aed) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,107,255,0.38) !important;
    transform: scale(1.12) !important;
}
.cal-nav-btn:disabled { opacity: 0.28 !important; cursor: default; }

/* ── Month title ──────────────────────────────────────────── */
.cal-month-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    background: linear-gradient(90deg, #1e40af 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* ── Day headers ──────────────────────────────────────────── */
.cal-hdr {
    font-size: 9.5px !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 0 10px !important;
}

/* ── Available day cells ──────────────────────────────────── */
.cal-cell.avail .cal-btn {
    color: #2563eb !important;
    font-weight: 700 !important;
    font-size: 13.5px;
}
.cal-cell.avail .cal-btn:hover {
    background: linear-gradient(135deg, #eff4ff, #f0ebff) !important;
    transform: scale(1.2) !important;
    box-shadow: 0 3px 10px rgba(99,102,241,0.22) !important;
}

/* ── Today cell: ring style instead of dot ────────────────── */
.cal-cell.today:not(.selected) .cal-btn {
    box-shadow: 0 0 0 2px #006bff;
    color: #006bff !important;
    font-weight: 800;
}
.cal-cell.today:not(.selected) .cal-btn::after { display: none; }

/* ── Selected cell: vivid gradient + glow ring ────────────── */
.cal-cell.selected .cal-btn {
    background: linear-gradient(135deg, #006bff 0%, #7c3aed 100%) !important;
    box-shadow: 0 6px 20px rgba(99,102,241,0.45), 0 0 0 4px rgba(99,102,241,0.2) !important;
    transform: scale(1.18) !important;
    color: #fff !important;
    font-weight: 800;
}

/* ── Timezone pill ────────────────────────────────────────── */
.tz-row {
    margin-top: 14px !important;
    background: linear-gradient(90deg, #f0f4ff, #f5f0ff) !important;
    border: 1px solid #c7d7fd !important;
    border-radius: 20px !important;
    padding: 5px 14px !important;
    font-size: 11.5px !important;
    color: #4338ca !important;
    font-weight: 500;
    gap: 6px !important;
}

/* ── Slots section ────────────────────────────────────────── */
.slots-section {
    width: 210px !important;
    border-left: none !important;
    padding-left: 0 !important;
    position: relative;
}
.slots-section.visible {
    display: block;
    animation: slideInSlots 0.38s cubic-bezier(0.34,1.1,0.64,1) both;
}

/* ── Slots date header pill ───────────────────────────────── */
.slots-date-hd {
    background: linear-gradient(90deg, #eff4ff, #f0ebff) !important;
    border: 1.5px solid #c7d7fd !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    color: #3730a3 !important;
    margin-bottom: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex; align-items: center; gap: 7px;
}
.slots-date-hd::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006bff, #7c3aed);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}

/* ── Slot list scroll ─────────────────────────────────────── */
.slots-list {
    max-height: 420px !important;
    gap: 7px !important;
}

/* ── Slot button — premium card style ─────────────────────── */
.slot-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 11px 13px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e0e7ff !important;
    background: #fff !important;
    font-size: 14px;
    color: #1e40af;
    text-align: left !important;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(99,102,241,0.06);
    transition: all 0.22s cubic-bezier(0.34,1.2,0.64,1) !important;
    letter-spacing: normal !important;
    font-weight: normal;
}
.slot-btn:hover {
    border-color: #6366f1 !important;
    background: linear-gradient(90deg, #eff4ff 0%, #f5f0ff 100%) !important;
    box-shadow: 0 5px 18px rgba(99,102,241,0.2) !important;
    transform: translateX(4px) !important;
}
.slot-btn:active { transform: translateX(2px) !important; }

/* ── Time display inside slot ─────────────────────────────── */
.slot-time-wrap {
    display: flex; align-items: baseline; gap: 2px; line-height: 1;
}
.slot-time-main {
    font-size: 15px; font-weight: 800; color: #1e40af; letter-spacing: -0.3px;
}
.slot-time-ampm {
    font-size: 10px; font-weight: 700; color: #6366f1;
    text-transform: uppercase; letter-spacing: 0.3px;
}

/* ── Available count badge ────────────────────────────────── */
.slot-avail-badge {
    font-size: 9.5px; font-weight: 700;
    color: #15803d;
    background: linear-gradient(90deg, #dcfce7, #bbf7d0);
    border-radius: 20px;
    padding: 2px 8px;
    border: 1px solid #86efac;
    flex-shrink: 0; letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ── Selected slot pair ───────────────────────────────────── */
.slot-pair { animation: slotExpand 0.22s cubic-bezier(0.34,1.2,0.64,1) !important; }
.slot-label {
    flex: 1;
    display: flex !important; align-items: center !important; gap: 3px !important;
    padding: 11px 10px !important;
    border: 1.5px solid #93c5fd !important;
    border-radius: 12px !important;
    background: linear-gradient(90deg, #eff4ff, #e8f0ff) !important;
    color: #1e40af !important;
    font-weight: 800 !important;
}
.slot-next {
    flex: 1;
    padding: 11px 6px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #006bff 0%, #7c3aed 100%) !important;
    color: #fff !important;
    font-size: 13px !important; font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(99,102,241,0.38) !important;
    cursor: pointer;
    transition: all 0.2s !important;
    letter-spacing: -0.2px;
}
.slot-next:hover {
    background: linear-gradient(135deg, #0054cc 0%, #6d28d9 100%) !important;
    box-shadow: 0 6px 22px rgba(99,102,241,0.48) !important;
    transform: translateY(-1px) !important;
}

/* ── Right panel padding ──────────────────────────────────── */
.right-panel { padding: 28px 28px 28px 28px !important; }

/* ── Right panel title ────────────────────────────────────── */
.right-title {
    font-size: 20px !important; font-weight: 800 !important;
    letter-spacing: -0.4px !important;
    color: #0f172a !important;
    margin-bottom: 22px !important;
}

/* ══════════════════════════════════════════════════════════
   DEEP ANIMATIONS & INTERACTIVITY LAYER
══════════════════════════════════════════════════════════ */

/* ── 1. Animated shifting page background ─────────────────── */
.two-panel-page, .page-center {
    background: linear-gradient(-45deg, #eef2ff, #f3e8ff, #fce7f3, #e0f2fe, #eff6ff) !important;
    background-size: 400% 400% !important;
    animation: bgShift 14s ease infinite !important;
}
@keyframes bgShift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* ── 2. Calendar month slide animations ───────────────────── */
@keyframes calSlideFromRight { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }
@keyframes calSlideFromLeft  { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:translateX(0); } }
@keyframes calTitleRight { from { opacity:0; transform:translateX(14px); } to { opacity:1; transform:translateX(0); } }
@keyframes calTitleLeft  { from { opacity:0; transform:translateX(-14px); } to { opacity:1; transform:translateX(0); } }

#calMount[data-dir="next"] .cal-grid        { animation: calSlideFromRight 0.32s cubic-bezier(0.4,0,0.2,1) both; }
#calMount[data-dir="prev"] .cal-grid        { animation: calSlideFromLeft  0.32s cubic-bezier(0.4,0,0.2,1) both; }
#calMount[data-dir="next"] .cal-month-title { animation: calTitleRight 0.28s cubic-bezier(0.4,0,0.2,1) both; }
#calMount[data-dir="prev"] .cal-month-title { animation: calTitleLeft  0.28s cubic-bezier(0.4,0,0.2,1) both; }

/* ── 3. Available date cells: staggered pop-in ────────────── */
@keyframes datePopIn {
    from { opacity:0; transform:scale(0.45) rotate(-8deg); }
    to   { opacity:1; transform:scale(1)    rotate(0deg); }
}
.cal-cell.avail .cal-btn {
    animation: datePopIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both !important;
}

/* ── 4. Click ripple on calendar dates ────────────────────── */
.cal-btn { position: relative; overflow: hidden; }
.cal-ripple {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: rgba(99,102,241,0.35);
    transform: scale(0);
    animation: calRipple 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes calRipple { to { transform: scale(3.5); opacity: 0; } }

/* ── 5. Slot stagger fade-in ──────────────────────────────── */
@keyframes slotFadeIn {
    from { opacity:0; transform:translateX(20px) scale(0.96); }
    to   { opacity:1; transform:translateX(0)    scale(1); }
}

/* ── 6. Slot button: fill-from-left hover effect ──────────── */
.slot-btn {
    position: relative !important;
    overflow: hidden !important;
}
.slot-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(99,102,241,0.10) 0%, transparent 100%);
    border-radius: 12px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.34,1.1,0.64,1);
    pointer-events: none;
    z-index: 0;
}
.slot-btn:hover::before { transform: scaleX(1); }
.slot-btn > * { position: relative; z-index: 1; }

/* ── 7. Step indicator active dot: living pulse ───────────── */
.step-dot.active {
    animation: stepActivePulse 1.8s ease-in-out infinite !important;
}
@keyframes stepActivePulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(0,107,255,0.55); }
    50%       { box-shadow: 0 0 0 6px rgba(0,107,255,0); }
}

/* ── 8. "X open" badge: pop-in then glow ─────────────────── */
.slot-avail-badge {
    animation: badgePopIn 0.45s cubic-bezier(0.34,1.56,0.64,1) both,
               badgeGlow 2.8s ease-in-out 0.45s infinite !important;
}
@keyframes badgePopIn { from { transform:scale(0); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes badgeGlow  {
    0%, 100% { box-shadow: 0 0 0 0   rgba(34,197,94,0.45); }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── 9. "Book Now" button: shimmer sweep ─────────────────── */
.slot-next { position: relative !important; overflow: hidden !important; }
.slot-next::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: skewX(-18deg);
    animation: shimmerSweep 2.4s ease-in-out 1s infinite;
}
@keyframes shimmerSweep {
    0%, 100% { left: -100%; }
    60%       { left: 150%; }
}

/* ── 10. Submit button shimmer ────────────────────────────── */
.submit-btn { position: relative !important; overflow: hidden !important; }
.submit-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-18deg);
    animation: shimmerSweep 3s ease-in-out 1.5s infinite;
}

/* ── 11. "New meeting" button shimmer ─────────────────────── */
.new-btn { position: relative !important; overflow: hidden !important; }
.new-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-18deg);
    animation: shimmerSweep 3s ease-in-out 0.8s infinite;
}

/* ── 12. Left panel meta items: staggered slide-in ────────── */
@keyframes metaSlideIn {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}
.meta-list li:nth-child(1) { animation: metaSlideIn 0.4s ease 0.15s both; }
.meta-list li:nth-child(2) { animation: metaSlideIn 0.4s ease 0.25s both; }
.meta-list li:nth-child(3) { animation: metaSlideIn 0.4s ease 0.35s both; }
.meta-list li:nth-child(4) { animation: metaSlideIn 0.4s ease 0.45s both; }

/* ── 13. Panel title slide-in ─────────────────────────────── */
@keyframes titleReveal {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
}
.panel-title { animation: titleReveal 0.5s cubic-bezier(0.34,1.1,0.64,1) 0.1s both; }

/* ── 14. Skeleton shimmer (improved) ─────────────────────── */
.slot-skeleton {
    height: 48px !important;
    border-radius: 12px !important;
    background: linear-gradient(90deg, #eef0f8 25%, #dde0f0 50%, #eef0f8 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmerLoad 1.2s infinite linear !important;
    border: 1.5px solid #e8ecff;
}

/* ── 15. No slots message ─────────────────────────────────── */
.no-slots-msg {
    text-align: center;
    padding: 24px 12px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    border: 1.5px dashed #c7d7fd;
    border-radius: 12px;
    background: #fafbff;
    animation: metaSlideIn 0.3s ease both;
}

/* ── 16. Calendar section: subtle entrance ────────────────── */
.cal-section {
    animation: cardFadeUp 0.4s cubic-bezier(0.34,1.1,0.64,1) 0.1s both !important;
}

/* ── 17. Slots section entrance upgrade ────────────────────── */
@keyframes slideInSlots {
    from { opacity:0; transform:translateX(24px) scale(0.97); }
    to   { opacity:1; transform:translateX(0)    scale(1); }
}
.slots-section.visible {
    animation: slideInSlots 0.42s cubic-bezier(0.34,1.1,0.64,1) both !important;
}

/* ── 18. Selected calendar date: celebratory bounce ──────── */
@keyframes selectedBounce {
    0%   { transform: scale(1.18); }
    40%  { transform: scale(1.28); }
    70%  { transform: scale(1.12); }
    100% { transform: scale(1.18); }
}
.cal-cell.selected .cal-btn {
    animation: selectedBounce 0.4s cubic-bezier(0.34,1.56,0.64,1) both !important;
}

/* ── 19. Today ring: pulsing glow ─────────────────────────── */
@keyframes todayRingPulse {
    0%, 100% { box-shadow: 0 0 0 2px #006bff, 0 0 0 4px rgba(0,107,255,0); }
    50%       { box-shadow: 0 0 0 2px #006bff, 0 0 0 6px rgba(0,107,255,0.2); }
}
.cal-cell.today:not(.selected) .cal-btn {
    animation: todayRingPulse 2s ease-in-out infinite !important;
}

/* ── 20. Right panel: stagger entry ────────────────────────── */
@keyframes rightPanelIn {
    from { opacity:0; transform:translateX(16px); }
    to   { opacity:1; transform:translateX(0); }
}
.step-indicator { animation: rightPanelIn 0.45s ease 0.05s both; }
.right-title    { animation: rightPanelIn 0.45s ease 0.12s both; }
.date-time-wrapper { animation: rightPanelIn 0.45s ease 0.2s both; }

/* ══════════════════════════════════════════════════════════
   HOST DASHBOARD — REDESIGNED TABLE & COMPONENTS
══════════════════════════════════════════════════════════ */

/* ── 4-column stats grid for host (overrides 3-col default) ── */
#sectionBookings .stats-row {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    border: 1px solid #EEF2F8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
.filter-bar .settings-input,
.filter-bar .settings-select {
    border-radius: 10px !important;
    border: 1.5px solid #E2E8F0 !important;
    font-size: 13px !important;
    height: 38px;
    padding: 0 12px !important;
    background: #fafbff !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-bar .settings-input:focus,
.filter-bar .settings-select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.10) !important;
    outline: none;
}
.filter-bar .settings-input { min-width: 210px; }

/* ── Table wrapper card ──────────────────────────────────── */
.table-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #EEF2F8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.04);
    overflow-x: auto;
    overflow-y: hidden;
}

/* ── Booking table ────────────────────────────────────────── */
.bk-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.bk-table thead tr {
    background: linear-gradient(90deg, #f8faff 0%, #f4f0ff 100%);
    border-bottom: 2px solid #EEF2F8;
}
.bk-table th {
    padding: 13px 16px;
    font-size: 10px; font-weight: 800;
    color: #94A3B8; text-transform: uppercase;
    letter-spacing: 0.8px; white-space: nowrap;
    text-align: left;
}
.bk-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #F8FAFC;
    vertical-align: middle;
    overflow: hidden;
    max-width: 0;
}
.bk-table tbody tr:last-child td { border-bottom: none; }

/* ── Row entry animation ──────────────────────────────────── */
@keyframes bkRowIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bk-row { transition: background 0.15s; cursor: default; }
.bk-row:hover td { background: #fafbff; }

/* ── Date block ───────────────────────────────────────────── */
.bk-date-block {
    display: flex; flex-direction: column; gap: 2px;
}
.bk-date-day {
    font-size: 9.5px; font-weight: 800; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.6px;
}
.bk-date-main {
    font-size: 13px; font-weight: 700; color: #0F172A;
}
.bk-date-time {
    font-size: 11.5px; color: #6366f1; font-weight: 600;
    background: #eff0ff; border-radius: 5px;
    padding: 1px 6px; display: inline-block; margin-top: 2px;
}

/* ── Person cell ──────────────────────────────────────────── */
.bk-person { display: flex; align-items: center; gap: 10px; }
.bk-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    letter-spacing: -0.5px;
}
.bk-name  { font-size: 13px; font-weight: 700; color: #0F172A; }
.bk-firm  { font-size: 11px; color: #94A3B8; margin-top: 2px; font-style: italic; }

/* ── Contact cell ─────────────────────────────────────────── */
.bk-email { font-size: 12px; color: #334155; font-weight: 500; }
.bk-phone { font-size: 11px; color: #94A3B8; margin-top: 3px; }

/* ── Event pill ───────────────────────────────────────────── */
.bk-event {
    display: inline-flex; align-items: center;
    font-size: 11.5px; color: #4338ca; font-weight: 600;
    max-width: 190px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    background: #eef2ff; border: 1px solid #c7d7fd;
    border-radius: 20px; padding: 3px 10px;
}

/* ── Status badges ────────────────────────────────────────── */
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    white-space: nowrap; text-transform: capitalize;
    letter-spacing: 0.2px;
}
.status-badge::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: currentColor;
    flex-shrink: 0; animation: dotPulseStatus 2s ease-in-out infinite;
}
@keyframes dotPulseStatus {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.status-pending    { background: #FEF9C3; color: #92400E; border: 1px solid #fde68a; }
.status-in_process { background: #DBEAFE; color: #1E40AF; border: 1px solid #bfdbfe; }
.status-completed  { background: #DCFCE7; color: #166534; border: 1px solid #bbf7d0; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; border: 1px solid #fecaca; }

/* ── Update button ────────────────────────────────────────── */
.bk-update-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; border: none;
    font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
    transition: all 0.2s cubic-bezier(0.34,1.2,0.64,1);
    position: relative; overflow: hidden;
}
.bk-update-btn::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-18deg);
    animation: shimmerSweep 2.8s ease-in-out 1s infinite;
}
.bk-update-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 5px 16px rgba(99,102,241,0.42);
    transform: translateY(-1px);
}
.bk-update-btn:active { transform: translateY(0); }

/* ── Transfer button (host dashboard) ───────────────────────── */
.bk-transfer-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s cubic-bezier(0.34,1.2,0.64,1);
    white-space: nowrap;
}
.bk-transfer-on {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff; border: none;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
    position: relative; overflow: hidden;
}
.bk-transfer-on::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-18deg);
    animation: shimmerSweep 2.8s ease-in-out 0.5s infinite;
}
.bk-transfer-on:hover {
    background: linear-gradient(135deg, #0284c7, #4f46e5);
    box-shadow: 0 5px 16px rgba(99,102,241,0.42);
    transform: translateY(-1px);
}
.bk-transfer-on:active { transform: translateY(0); }

.bk-transfer-off {
    background: #f1f5f9; color: #94a3b8;
    border: 1.5px solid #e2e8f0;
    cursor: not-allowed; opacity: 0.7;
}
.bk-transfer-hint {
    font-size: 10.5px; font-weight: 600; color: #0ea5e9;
    margin-top: 4px; white-space: nowrap;
}
.bk-transfer-na {
    color: #cbd5e1;
}

/* ── Action warning ───────────────────────────────────────── */
.bk-action-warn {
    font-size: 10px; color: #ef4444; font-weight: 700;
    margin-top: 5px; display: flex; align-items: center; gap: 3px;
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-bk {
    text-align: center; padding: 52px 20px; color: #94A3B8;
}
.empty-bk svg { margin-bottom: 12px; display: block; margin-left: auto; margin-right: auto; }
.empty-bk p { font-size: 14px; font-weight: 500; }

/* ── Leaves table ─────────────────────────────────────────── */
#leavesTable th { font-size: 10px !important; }
#leavesTable td { font-size: 13px; }

/* ── Stat cards: entrance animation ──────────────────────── */
.stat-card { animation: cardFadeUp 0.4s cubic-bezier(0.34,1.1,0.64,1) both; }
.stats-row .stat-card:nth-child(1) { animation-delay: 0.05s; }
.stats-row .stat-card:nth-child(2) { animation-delay: 0.12s; }
.stats-row .stat-card:nth-child(3) { animation-delay: 0.19s; }
.stats-row .stat-card:nth-child(4) { animation-delay: 0.26s; }

/* ══════════════════════════════════════════════════════════
   ADMIN DASHBOARD — CLICKABLE ROWS + DETAIL DRAWER
══════════════════════════════════════════════════════════ */

/* ── Clickable table rows ─────────────────────────────────── */
.tbl-row-click {
    cursor: pointer;
    transition: background 0.14s;
}
.tbl-row-click:hover td { background: #f5f7ff !important; }
.tbl-row-click:hover .tbl-arrow-cell svg { stroke: #6366f1; }

.tbl-arrow-cell {
    text-align: center;
    vertical-align: middle !important;
    padding-right: 10px !important;
    transition: transform 0.15s;
}
.tbl-row-click:hover .tbl-arrow-cell { transform: translateX(3px); }

/* Prevent double-scroll — table fills card naturally */
.table-card { overflow: hidden; }
.table-card .data-tbl { table-layout: fixed; }
.table-card .data-tbl td, .table-card .data-tbl th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Drawer overlay ───────────────────────────────────────── */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.35);
    z-index: 450;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(1px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Drawer panel ─────────────────────────────────────────── */
.detail-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    background: #fff;
    z-index: 451;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -12px 0 48px rgba(0,0,0,0.16);
}
.detail-drawer.open { transform: translateX(0); }

/* ── Drawer header ────────────────────────────────────────── */
.drawer-hd {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid #F1F5F9;
    background: linear-gradient(135deg, #fafbff 0%, #f4f0ff 100%);
    flex-shrink: 0;
}
.drawer-eyebrow {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px; flex-wrap: wrap;
}
.drawer-title {
    font-size: 18px; font-weight: 800; color: #0F172A;
    letter-spacing: -0.4px; line-height: 1.2;
}
.drawer-close-btn {
    width: 32px; height: 32px; border-radius: 8px;
    background: #F1F5F9; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #64748B; flex-shrink: 0;
    transition: all 0.15s;
}
.drawer-close-btn:hover { background: #fee2e2; color: #ef4444; }

/* ── Drawer body (scrollable) ─────────────────────────────── */
.drawer-body {
    flex: 1; overflow-y: auto; padding: 0;
}
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

/* ── Info sections ────────────────────────────────────────── */
.di-section {
    padding: 18px 22px;
    border-bottom: 1px solid #F8FAFC;
}
.di-section-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 10px; font-weight: 800; color: #94A3B8;
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 14px;
}
.di-row {
    display: flex; align-items: flex-start;
    gap: 12px; padding: 5px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
}
.di-row:last-child { border-bottom: none; }
.di-label {
    width: 80px; flex-shrink: 0;
    font-size: 11.5px; font-weight: 600; color: #94A3B8;
    padding-top: 1px;
}
.di-val {
    flex: 1; color: #1E293B; font-weight: 500;
    word-break: break-word;
}
.di-notes-box {
    background: #FAFAFA; border: 1px solid #F1F5F9;
    border-radius: 8px; padding: 10px 12px;
    font-size: 13px; color: #475569; line-height: 1.65;
    white-space: pre-wrap;
}

/* ── Drawer footer actions ────────────────────────────────── */
.drawer-ft {
    padding: 16px 22px;
    border-top: 1px solid #F1F5F9;
    background: #FAFBFF;
    flex-shrink: 0;
}
.drawer-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.da-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600;
    border: 1.5px solid transparent; cursor: pointer;
    font-family: inherit;
    transition: all 0.18s cubic-bezier(0.34,1.2,0.64,1);
}
.da-resched  { background:#EFF6FF; color:#1D4ED8; border-color:#BFDBFE; }
.da-resched:hover  { background:#DBEAFE; border-color:#93C5FD; }
.da-complete { background:#F0FDF4; color:#15803D; border-color:#BBF7D0; }
.da-complete:hover { background:#DCFCE7; border-color:#86EFAC; }
.da-edit     { background:#F8FAFC; color:#475569; border-color:#E2E8F0; }
.da-edit:hover     { background:#F1F5F9; border-color:#CBD5E1; }
.da-addnotes { background:#FEFCE8; color:#854D0E; border-color:#FEF08A; }
.da-addnotes:hover { background:#FEF9C3; border-color:#FDE047; }
.da-notes    { background:#F5F3FF; color:#6D28D9; border-color:#DDD6FE; }
.da-notes:hover    { background:#EDE9FE; border-color:#C4B5FD; }
.da-transfer { background:#FFF7ED; color:#C2410C; border-color:#FED7AA; }
.da-transfer:hover { background:#FFEDD5; border-color:#FDBA74; }
.da-cancel   { background:#FFF1F2; color:#BE123C; border-color:#FECDD3; }
.da-cancel:hover   { background:#FFE4E6; border-color:#FDA4AF; }

@media (max-width: 900px) {
    .detail-drawer { width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   LEAVE CONFLICT MODAL — HOST DASHBOARD
══════════════════════════════════════════════════════════ */

/* ── Booking item in conflict modal ─────────────────────── */
.lcm-item {
    border-bottom: 1px solid #F1F5F9;
    padding: 16px 22px;
    animation: cardFadeUp 0.3s ease both;
}
.lcm-item:last-child { border-bottom: none; }

.lcm-item-hd {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.lcm-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.lcm-item-info { flex: 1; min-width: 0; }
.lcm-item-name { font-size: 13.5px; font-weight: 700; color: #0F172A; }
.lcm-item-meta { font-size: 12px; color: #64748B; margin-top: 2px; }

/* ── State tag ───────────────────────────────────────────── */
.lcm-tag {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.lcm-pending   { background: #FEF9C3; color: #92400E; border: 1px solid #fde68a; }
.lcm-done-tx   { background: #DBEAFE; color: #1E40AF; border: 1px solid #bfdbfe; }
.lcm-done-rs   { background: #F0FDF4; color: #15803D; border: 1px solid #bbf7d0; }
.lcm-done-cn   { background: #FEE2E2; color: #991B1B; border: 1px solid #fecaca; }

/* ── Three action buttons ────────────────────────────────── */
.lcm-item-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.lcm-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 12.5px; font-weight: 600; font-family: inherit;
    cursor: pointer; border: 1.5px solid transparent;
    transition: all 0.18s cubic-bezier(0.34,1.2,0.64,1);
    white-space: nowrap;
}

/* Transfer — blue gradient when enabled */
.lcm-tx {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff; border-color: transparent;
    box-shadow: 0 2px 8px rgba(99,102,241,0.28);
}
.lcm-tx:hover:not(:disabled) {
    background: linear-gradient(135deg, #0284c7, #4f46e5);
    box-shadow: 0 4px 14px rgba(99,102,241,0.42);
    transform: translateY(-1px);
}
/* Disabled transfer */
.lcm-tx.lcm-disabled {
    background: #f1f5f9; color: #94a3b8;
    border-color: #e2e8f0; box-shadow: none;
    cursor: not-allowed; opacity: 0.7;
    background: none;
}

/* Reschedule — amber */
.lcm-rs {
    background: #FFF7ED; color: #C2410C;
    border-color: #FED7AA;
}
.lcm-rs:hover {
    background: #FFEDD5; border-color: #FDBA74;
    transform: translateY(-1px);
}

/* Cancel — red */
.lcm-cn {
    background: #FEF2F2; color: #DC2626;
    border-color: #FCA5A5;
}
.lcm-cn:hover {
    background: #FEE2E2; border-color: #f87171;
    transform: translateY(-1px);
}

/* ── Reschedule sub-panel ────────────────────────────────── */
.lcm-rs-panel {
    margin-top: 12px;
    background: #F8FAFC; border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    padding: 14px;
    animation: cardFadeUp 0.22s ease both;
}

/* ── Transfer host-picker sub-panel (leave conflict modal) ── */
.lcm-tx-panel {
    margin-top: 12px;
    background: #F0F9FF; border-radius: 10px;
    border: 1.5px solid #BAE6FD;
    padding: 14px;
    animation: cardFadeUp 0.22s ease both;
}
.lcm-host-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
    margin-bottom: 6px;
}
.lcm-host-opt:last-of-type { margin-bottom: 0; }
.lcm-host-opt:hover { background: #E0F2FE; }
.lcm-host-opt span { font-size: 13px; font-weight: 600; color: #0f172a; flex: 1; }

/* ── Transfer picker modal (bookings table) ──────────────── */
.tx-host-card {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px;
    border: 1.5px solid #E2E8F0; margin-bottom: 8px;
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.tx-host-card:last-child { margin-bottom: 0; }
.tx-host-card:hover { background: #F0F9FF; border-color: #BAE6FD; }

/* ══════════════════════════════════════════════════════════
   LEAVE ALERTS — NOTIFICATION BELL + PANEL
══════════════════════════════════════════════════════════ */

/* ── Bell button ──────────────────────────────────────────── */
.notif-bell-btn {
    position: relative;
    width: 34px; height: 34px;
    border: 1.5px solid #ebebeb; border-radius: 8px;
    background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #888; transition: all 0.15s;
}
.notif-bell-btn:hover {
    border-color: #f59e0b; color: #f59e0b; background: #fffbeb;
}
.notif-bell-btn.has-alerts {
    border-color: #f59e0b; color: #d97706; background: #fffbeb;
    animation: bellShake 2.5s ease-in-out 1s infinite;
}
@keyframes bellShake {
    0%,100%   { transform: rotate(0); }
    10%,90%   { transform: rotate(-8deg); }
    20%,80%   { transform: rotate(8deg); }
    30%,50%,70% { transform: rotate(-6deg); }
    40%,60%   { transform: rotate(6deg); }
    55%       { transform: rotate(0); }
}

/* ── Bell badge ───────────────────────────────────────────── */
.notif-bell-badge {
    position: absolute; top: -7px; right: -7px;
    background: #ef4444; color: #fff;
    font-size: 9.5px; font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 9px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    animation: badgePopIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Overlay (closes panel on outside click) ──────────────── */
.notif-overlay {
    position: fixed; inset: 0;
    z-index: 399; display: none;
}
.notif-overlay.open { display: block; }

/* ── Notification panel ───────────────────────────────────── */
.notif-panel {
    position: fixed;
    top: 66px; right: 20px;
    width: 410px; max-height: 560px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E8ECF4;
    box-shadow: 0 10px 36px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 400;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(-12px) scale(0.97);
    pointer-events: none;
    transition: all 0.24s cubic-bezier(0.34,1.1,0.64,1);
}
.notif-panel.open {
    opacity: 1; transform: translateY(0) scale(1);
    pointer-events: auto;
}
.notif-panel-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #F1F5F9; flex-shrink: 0;
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
    border-radius: 16px 16px 0 0;
}
.notif-panel-title {
    font-size: 14px; font-weight: 700; color: #0F172A;
}
.notif-panel-sub {
    font-size: 11.5px; color: #64748B; margin-top: 3px;
}
.notif-panel-close {
    width: 28px; height: 28px; border: none;
    background: #F1F5F9; border-radius: 7px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #64748B; transition: all 0.15s;
}
.notif-panel-close:hover { background: #fee2e2; color: #ef4444; }

.notif-panel-body {
    flex: 1; overflow-y: auto; padding: 12px;
}
.notif-panel-body::-webkit-scrollbar { width: 4px; }
.notif-panel-body::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.notif-loading {
    text-align: center; padding: 32px; color: #94a3b8; font-size: 13px;
}

/* ── Alert card ───────────────────────────────────────────── */
.notif-alert-card {
    border: 1.5px solid #FDE68A;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #FFFBEB;
    animation: cardFadeUp 0.3s ease both;
}
.notif-alert-card:last-child { margin-bottom: 0; }
.notif-alert-hd {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px 10px;
}
.notif-alert-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: #FEF3C7; color: #D97706;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.notif-host-name { font-size: 13px; font-weight: 700; color: #1E293B; }
.notif-host-date { font-size: 11.5px; color: #64748B; margin-top: 2px; }
.notif-reason {
    font-size: 10.5px; color: #92400E;
    background: #FEF9C3; border-radius: 4px;
    padding: 2px 7px; display: inline-block; margin-top: 5px;
}

/* ── Booking row inside alert ─────────────────────────────── */
.notif-booking-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    border-top: 1px solid rgba(253,230,138,0.5);
    background: rgba(255,255,255,0.65);
}
.notif-booking-info { flex: 1; min-width: 0; }
.notif-booking-name {
    font-size: 12.5px; font-weight: 600; color: #1E293B;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-booking-meta { font-size: 11px; color: #64748B; margin-top: 1px; }
.notif-booking-acts { display: flex; gap: 6px; flex-shrink: 0; }
.nb-cancel-btn {
    padding: 5px 10px; border-radius: 6px;
    border: 1.5px solid #FCA5A5; background: #FEF2F2;
    color: #DC2626; font-size: 11px; font-weight: 600;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
    font-family: inherit;
}
.nb-cancel-btn:hover { background: #FEE2E2; border-color: #f87171; }
.nb-resched-btn {
    padding: 5px 10px; border-radius: 6px;
    border: 1.5px solid #BFDBFE; background: #EFF6FF;
    color: #1D4ED8; font-size: 11px; font-weight: 600;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
    font-family: inherit;
}
.nb-resched-btn:hover { background: #DBEAFE; border-color: #93c5fd; }

/* ── Empty alert state ────────────────────────────────────── */
.notif-empty {
    text-align: center; padding: 44px 20px; color: #94A3B8;
}
.notif-empty svg { margin-bottom: 10px; }
.notif-empty p   { font-size: 13px; font-weight: 500; }

@media (max-width: 480px) {
    .notif-panel { width: calc(100vw - 24px); right: 12px; }
}

