/* Dashboard Layout and Styles - Accessible WCAG 2.2 AA Typography and Color System */

:root {
    --font-family-base: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --db-font: var(--font-family-base);
    --db-bg: #ffffff;
    --sidebar-width: 215px;
    
    /* Primary & Interaction Colors (WCAG AA Compliant) */
    --primary-color: #0056cc;
    --primary-hover: #00449e;
    --primary-light: #eff6ff;
    --primary-dark: #00337a;
    
    /* Neutral & Text Colors */
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-on-primary: #ffffff;
    
    /* Surface & Border Colors */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --border-color: #cbd5e1;
    --border-subtle: #e2e8f0;
    --border-strong: #94a3b8;
    
    /* State & Semantic Colors */
    --color-success: #065f46;
    --color-success-bg: #ecfdf5;
    --color-success-border: #a7f3d0;
    
    --color-warning: #78350f;
    --color-warning-bg: #fffbeb;
    --color-warning-border: #fde68a;
    
    --color-danger: #991b1b;
    --color-danger-bg: #fef2f2;
    --color-danger-border: #fecaca;
    
    --color-info: #075985;
    --color-info-bg: #f0f9ff;
    --color-info-border: #bae6fd;
    
    /* Focus & Shadows */
    --focus-color: #0056cc;
    --focus-ring: 0 0 0 3px rgba(0, 86, 204, 0.35);
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    --modal-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.08);
}

html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

body.dashboard-body {
    background-color: var(--db-bg);
    font-family: var(--db-font);
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

/* Universal Keyboard Focus Indicator */
:focus-visible {
    outline: 3px solid var(--focus-color) !important;
    outline-offset: 2px !important;
}

button:focus-visible, 
a:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
    outline: 3px solid var(--focus-color) !important;
    outline-offset: 2px !important;
}

/* ==========================================================================
   Sidebar Styling (190px Desktop Width)
   ========================================================================== */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    border-right: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    padding: 14px 10px 20px 10px;
    box-sizing: border-box;
    transition: width 0.25s ease, padding 0.25s ease;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-left: 4px;
    min-height: 36px;
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    max-width: 140px;
}

.sidebar-logo img {
    max-height: 75px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    border-radius: 4px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, color 0.15s;
}

.sidebar-toggle:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

/* Collapsed Sidebar Styles */
.dashboard-sidebar.collapsed {
    width: 64px;
    padding: 14px 6px;
}

.dashboard-sidebar.collapsed .sidebar-logo {
    justify-content: center;
    padding-left: 0;
}

.dashboard-sidebar.collapsed .sidebar-logo a {
    display: none;
}

.dashboard-sidebar.collapsed .btn-create-event {
    font-size: 0 !important;
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-sidebar.collapsed .btn-create-event i {
    font-size: 16px !important;
    margin: 0;
}

.dashboard-sidebar.collapsed .nav-link-item {
    font-size: 0 !important;
    justify-content: center;
    padding: 8px 0;
    gap: 0;
    min-height: 36px;
}

.dashboard-sidebar.collapsed .nav-link-item i {
    font-size: 17px !important;
    margin: 0;
}

.dashboard-sidebar.collapsed .nav-link-item span,
.dashboard-sidebar.collapsed .badge-new,
.dashboard-sidebar.collapsed .sidebar-group-header,
.dashboard-sidebar.collapsed .sidebar-divider,
.dashboard-sidebar.collapsed .sidebar-section-header,
.dashboard-sidebar.collapsed .sidebar-upgrade-banner {
    display: none !important;
}

.btn-create-event {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ffffff;
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    padding: 7px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 13px;
    min-height: 34px;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.btn-create-event.dropdown-toggle::after {
    display: none;
}

.btn-create-event:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.sidebar-group-header {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 12px 0 2px 8px;
}

.sidebar-group-header:first-of-type {
    margin-top: 2px;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 6px;
    min-height: 32px;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-link-item i {
    font-size: 16px;
    color: var(--text-muted);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
    text-decoration: none;
}

.nav-link-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link-item.active i {
    color: var(--primary-color);
}

.sidebar-upgrade-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 7px 10px;
    margin: 6px 0;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.sidebar-upgrade-banner:hover {
    background-color: #dbeafe;
    border-color: var(--primary-hover);
    color: var(--primary-hover);
    text-decoration: none;
}

.sidebar-upgrade-banner.active {
    background-color: #dbeafe;
    border-color: var(--primary-color);
}

.sidebar-upgrade-banner .upgrade-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
    color: var(--primary-color);
    white-space: nowrap;
    display: block;
}

.sidebar-upgrade-banner .upgrade-subtitle {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    color: #475569;
    white-space: nowrap;
    margin-top: 2px;
    display: block;
}

.badge-new {
    background-color: #0f172a;
    color: #ffffff;
    font-size: 10.5px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-subtle);
    margin: 8px 0;
}

/* ==========================================================================
   Main Dashboard Area & Compact Header (~52px)
   ========================================================================== */
.dashboard-main {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    transition: margin-left 0.25s ease;
    background-color: var(--bg-page);
    width: calc(100vw - var(--sidebar-width));
    position: relative;
}

.dashboard-main.sidebar-collapsed {
    margin-left: 64px;
    width: calc(100vw - 64px);
}

.dashboard-header {
    min-height: 50px;
    height: 50px;
    background-color: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 90;
    gap: 16px;
    box-sizing: border-box;
    pointer-events: none;
}

.dashboard-header > * {
    pointer-events: auto;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dashboard-brand-details {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard-brand-logo {
    max-height: 28px;
    max-width: 110px;
    object-fit: contain;
}

.dashboard-brand-text {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.dashboard-brand-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-brand-tagline {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dashboard-header-clientloop-logo {
    max-height: 32px;
    object-fit: contain;
    display: block;
}

/* Public Brand Header (For Booking, Poll, Landing, Secret View) */
.public-brand-header {
    width: 980px;
    max-width: 100%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 12px;
    box-sizing: border-box;
}

.public-brand-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    min-width: 0;
}

.public-brand-logo {
    max-height: 52px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 2px;
}

.public-brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.25;
}

.public-brand-tagline {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    line-height: 1.35;
}

.public-brand-right {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    margin-left: 20px;
}

.public-clientloop-logo {
    max-height: 75px;
    object-fit: contain;
    display: block;
}

.header-user-btn,
.header-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: transform 0.15s ease, opacity 0.15s ease;
    min-height: 34px;
    min-width: 34px;
    color: var(--text-main);
    text-decoration: none;
}

.header-user-btn:hover,
.header-user-btn:focus-visible,
.header-avatar-btn:hover,
.header-avatar-btn:focus-visible {
    background-color: transparent;
    opacity: 0.9;
}

.header-user-btn.dropdown-toggle::after,
.header-avatar-btn.dropdown-toggle::after {
    display: none !important;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    border: 1.5px solid var(--primary-color);
    overflow: hidden;
    flex-shrink: 0;
    user-select: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-avatar-btn:hover .profile-avatar {
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 2.5px rgba(0, 86, 204, 0.25);
    transform: scale(1.05);
}

.header-icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 17px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
}

.header-icon-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

/* ==========================================================================
   Content Area, Titles, and Tabs
   ========================================================================== */
.dashboard-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 24px 36px 24px;
    box-sizing: border-box;
}

.content-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
    padding-right: 60px;
}

.content-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1.2;
}

.content-title i {
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-blue-create {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 13.5px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
    text-decoration: none;
}

.btn-blue-create:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-blue-create.dropdown-toggle::after {
    display: none;
}

/* Tabs (~38px height) */
.dashboard-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1.5px solid var(--border-subtle);
    margin-bottom: 14px;
    min-height: 36px;
}

.tab-item {
    padding: 8px 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2.5px solid transparent;
    transition: all 0.15s;
}

.tab-item:hover {
    color: var(--text-main);
    text-decoration: none;
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom-color: var(--primary-color);
}

/* ==========================================================================
   Scheduling Toolbar (Search, Filter, Summary, Landing Link)
   ========================================================================== */
.scheduling-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    width: 320px;
    max-width: 100%;
    margin-bottom: 0;
}

.search-input {
    width: 100%;
    min-height: 36px;
    padding: 6px 12px 6px 34px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.status-filter-select {
    min-height: 36px;
    padding: 6px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: #ffffff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.status-filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.events-summary-badge {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.btn-view-landing-compact {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-view-landing-compact:hover {
    background: #dbeafe;
    color: var(--primary-hover);
    text-decoration: none;
}

/* View Toggle Buttons (Grid vs List) */
.view-toggle-group {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.btn-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.btn-view-toggle:hover {
    color: #0f172a;
}

.btn-view-toggle.active {
    background: #ffffff;
    color: #0056cc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

/* Grid View Tiles Layout & Responsive Rules */
.event-cards-grid-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 991px) {
    .event-cards-grid-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .event-cards-grid-tiles {
        grid-template-columns: 1fr;
    }
}

/* Tile Card Styling */
.event-tile-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    border-top-width: 4px;
}

.event-tile-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: #94a3b8;
}

.event-tile-card.yellow-border { border-top-color: #f59e0b; }
.event-tile-card.blue-border { border-top-color: #3b82f6; }
.event-tile-card.purple-border { border-top-color: #8b5cf6; }

.event-tile-card.is-inactive {
    background-color: #f8fafc;
    opacity: 0.85;
}

.tile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.tile-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.tile-header-left .card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.tile-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tile-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tile-card-schedule {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.tile-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.tile-action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

/* Legacy User Banner (kept sleek & compact) */
.user-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 6px 0;
    min-width: 0;
}

.user-banner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border: 1.5px solid var(--primary-color);
}

.user-banner-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: 0;
}

.btn-view-landing {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 13.5px;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-view-landing:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   High-Density Compact Event Rows (~64-70px Height)
   ========================================================================== */
.event-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-card {
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px 8px 14px;
    display: flex;
    align-items: center;
    min-height: 60px;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background-color 0.15s;
    overflow: visible;
}

.event-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    background-color: #fafbfc;
}

.event-card.is-inactive {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.88;
}

.event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.event-card.yellow-border::before {
    background-color: #b45309; /* Accessible amber */
}

.event-card.blue-border::before {
    background-color: var(--primary-color);
}

.event-card.purple-border::before {
    background-color: #7c3aed; /* Accessible violet */
}

.card-checkbox-wrapper {
    margin-right: 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.card-checkbox {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1.5px solid var(--border-strong);
    cursor: pointer;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    min-width: 0;
}

.card-details-line1 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
}

.event-chips-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.event-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.chip-duration {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.chip-type {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.chip-location {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.chip-no-location {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.chip-loc-link {
    color: var(--primary-color);
    margin-left: 2px;
    text-decoration: none;
}

.chip-secret {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.event-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-active {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-inactive {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-active .status-dot {
    background-color: #10b981;
}

.status-inactive .status-dot {
    background-color: #94a3b8;
}

.card-details-line2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.card-availability-schedule {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    font-weight: 500;
}

.chip-specific-hours {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: default;
    transition: background-color 0.15s ease;
}

.chip-specific-hours:hover {
    background: #dcfce7;
}

.chip-wa {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #d1fadf;
    font-size: 11.5px;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chip-wa code {
    color: #027a48;
    background: transparent;
    font-weight: 700;
    padding: 0;
}

.btn-chip-copy, .btn-chip-wa-share {
    background: none;
    border: none;
    padding: 0 2px;
    color: #027a48;
    cursor: pointer;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
}

/* Card Actions (Far Right Compact Toolbar) */
.card-actions-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 12px;
}

.btn-copy-link-compact {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-copy-link-compact:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-card-icon-compact {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: all 0.15s ease;
}

.btn-card-icon-compact:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--border-subtle);
}

.btn-toggle-switch-compact {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    min-height: 28px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-toggle-switch-compact:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-strong);
}

.badge-1x {
    font-size: 8px;
    font-weight: 800;
    position: absolute;
    top: 0px;
    right: 0px;
    background: #0f172a;
    color: white;
    border-radius: 50%;
    padding: 1px 3px;
    line-height: 1;
}

/* Legacy button classes compatibility */
.btn-copy-link {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-copy-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-card-icon {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    transition: all 0.15s ease;
}

.btn-card-icon:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.btn-toggle-switch {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    min-height: 28px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-toggle-switch:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-strong);
}

/* ==========================================================================
   Dropdowns, Drawers & Form Editors
   ========================================================================== */
.create-dropdown-menu {
    width: 340px;
    border-radius: 12px !important;
    font-family: var(--db-font);
    border: 1.5px solid var(--border-color) !important;
    padding: 16px 0 !important;
    box-shadow: var(--modal-shadow) !important;
}

.dropdown-header-custom {
    padding: 8px 20px 6px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-divider-custom {
    height: 1.5px;
    background-color: var(--border-subtle);
    margin: 12px 0;
}

.dropdown-item-custom {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.dropdown-item-custom:hover {
    background-color: var(--primary-light);
    color: inherit;
    text-decoration: none;
}

.dropdown-item-custom .item-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.dropdown-item-custom .item-meta {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.dropdown-item-custom .item-meta i {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 4px;
}

.dropdown-item-custom .item-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Drawer Container & Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-container {
    position: fixed;
    top: 0;
    right: -560px;
    width: 500px;
    max-width: 92%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.12);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-container form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drawer-container.open {
    right: 0;
}

.drawer-header {
    padding: 16px 20px 14px 20px;
    border-bottom: 1.5px solid var(--border-subtle);
    position: relative;
    background-color: #ffffff;
}

.btn-close-drawer {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.btn-close-drawer:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.drawer-header-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.purple-bullet {
    width: 12px;
    height: 12px;
    background-color: #7c3aed;
    border-radius: 50%;
    flex-shrink: 0;
}

.drawer-title-input {
    border: 1.5px solid transparent;
    outline: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    flex-grow: 1;
    padding: 3px 6px;
    border-radius: 6px;
    background: transparent;
    transition: all 0.2s;
}

.drawer-title-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.drawer-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
    padding-left: 22px;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 4px 0;
}

/* Accordion Sections */
.form-section {
    border-bottom: 1px solid var(--border-subtle);
}

.section-trigger {
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    min-height: 44px;
    transition: background-color 0.15s ease;
}

.section-trigger:hover {
    background-color: #fafbfc;
}

.section-trigger i {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.section-trigger.collapsed i {
    transform: rotate(-90deg);
}

.section-content {
    padding: 0 20px 14px 20px;
    display: block;
}

.form-section.collapsed .section-content {
    display: none;
}

/* Form inputs inside drawers and panels */
.duration-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-main);
}

.duration-select {
    padding: 6px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    font-size: 14px;
    outline: none;
    min-width: 120px;
    min-height: 36px;
    background-color: #fff;
    cursor: pointer;
    color: var(--text-main);
}

.duration-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.location-card {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 60px;
}

.location-card i {
    font-size: 18px;
    color: var(--text-muted);
}

.location-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.location-card:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-strong);
}

.location-card.active {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.location-card.active i,
.location-card.active span {
    color: var(--primary-color);
    font-weight: 700;
}

.availability-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.host-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.host-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12.5px;
    border: 1.5px solid var(--primary-color);
}

.host-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* Sticky Drawer Footer */
.drawer-footer {
    padding: 14px 20px;
    border-top: 1.5px solid var(--border-subtle);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.btn-drawer-options {
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}

.btn-drawer-options:hover {
    text-decoration: underline;
    background-color: var(--bg-hover);
}

.btn-drawer-create {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 22px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    min-height: 38px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-drawer-create:hover {
    background-color: var(--primary-hover);
}

/* Location Selection Box & Alerts */
.selected-location-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.selected-location-box.warning-border {
    border-color: #b45309;
}

.location-logo-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
}

.location-name-label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-remove-selected-location {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    min-width: 28px;
    min-height: 28px;
}

.btn-remove-selected-location:hover {
    background-color: var(--bg-hover);
    color: var(--color-danger);
}

.location-alert-banner {
    background-color: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-alert-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-warning);
    font-size: 13.5px;
    font-weight: 600;
}

.location-alert-message i {
    color: var(--color-warning);
    font-size: 17px;
    flex-shrink: 0;
}

.btn-connect-location-account {
    align-self: flex-start;
    background-color: #ffffff;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    min-height: 32px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-connect-location-account:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
}

.location-helper-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 8px;
}

/* Custom Location Layout */
.custom-location-config {
    padding: 4px 0 10px 12px;
    border-left: 2.5px solid var(--border-color);
    margin-bottom: 10px;
}

.custom-location-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.custom-location-input {
    width: 100%;
    padding: 7px 11px;
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
    color: var(--text-main);
}

.custom-location-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.custom-location-error-msg {
    color: var(--color-danger);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-location-display-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 10px 0 6px 0;
}

.location-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-main);
    cursor: pointer;
}

.location-radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Multiple Location Add Card */
.add-location-box-card {
    background-color: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-location-box-card span {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-add-new-location-trigger {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.btn-add-new-location-trigger:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.add-location-dropdown-select {
    padding: 7px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    font-size: 13.5px;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    color: var(--text-main);
}

.add-location-dropdown-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

/* ==========================================================================
   Availability & Schedule Editor
   ========================================================================== */
.availability-date-range {
    margin-bottom: 12px;
}

.availability-label-header {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.availability-text-flow {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.blue-dropdown-inline-trigger {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-bottom: 1.5px dashed var(--primary-color);
}

.schedule-control-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.schedule-label-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.btn-schedule-dropdown-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
}

.btn-schedule-dropdown-toggle:hover {
    background-color: var(--bg-hover);
}

.btn-view-calendar-drawer {
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    min-height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    margin-left: auto;
}

.btn-view-calendar-drawer:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-strong);
}

.btn-clone-schedule {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
}

.btn-clone-schedule:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.schedule-display-panel {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #ffffff;
    padding: 12px 14px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.inherited-banner {
    background-color: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
}

.btn-edit-hours-default {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 3px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.btn-edit-hours-default:hover {
    color: var(--text-main);
    background-color: var(--bg-hover);
}

.weekly-hours-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.weekly-hours-title-row i {
    font-size: 14px;
    color: var(--text-muted);
}

.day-hours-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.day-hours-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-circle-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

.day-hours-row.unavailable .day-circle-badge {
    background-color: #f1f5f9;
    color: #94a3b8;
    border: 1px solid var(--border-subtle);
}

.day-hours-value-label {
    font-size: 13.5px;
    color: var(--text-main);
    font-weight: 500;
}

.day-hours-row.unavailable .day-hours-value-label {
    color: var(--text-muted);
}

/* Custom Schedule Editor Mode */
.custom-schedule-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-day-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.editor-time-intervals {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-input-box {
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    width: 86px;
    min-height: 32px;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.time-input-box:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.interval-separator {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.btn-remove-interval,
.btn-add-interval-trigger {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 17px;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    transition: color 0.2s;
}

.btn-remove-interval:hover {
    color: var(--color-danger);
}

.btn-add-interval-trigger:hover {
    color: var(--primary-color);
}

.editor-day-row.unavailable .editor-time-intervals {
    display: none;
}

.editor-day-row.unavailable .editor-day-status-label {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.timezone-text-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.date-specific-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 0;
}

.date-specific-content {
    font-size: 13px;
    color: var(--text-muted);
}

/* Date Range Edit Panel */
.date-range-edit-panel {
    border-left: 2.5px solid var(--primary-color);
    padding-left: 12px;
    margin-top: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-range-radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-main);
    cursor: pointer;
}

.date-range-radio-row input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.date-range-inline-inputs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.days-number-input {
    width: 60px;
    min-height: 32px;
    padding: 4px 6px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13.5px;
    text-align: center;
    outline: none;
    color: var(--text-main);
    font-weight: 600;
}

.days-number-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.day-type-dropdown-select {
    padding: 4px 8px;
    min-height: 32px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13.5px;
    background-color: #ffffff;
    cursor: pointer;
    outline: none;
    color: var(--text-main);
}

.day-type-dropdown-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.date-range-picker-input {
    padding: 4px 8px;
    min-height: 32px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13.5px;
    outline: none;
    width: 170px;
    color: var(--text-main);
}

.date-range-picker-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.date-range-picker-input.error-border {
    border-color: var(--color-danger);
}

.date-range-error-message {
    color: var(--color-danger);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 24px;
}

.notice-edit-panel {
    border-left: 2.5px solid var(--primary-color);
    padding-left: 12px;
    margin-top: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.notice-number-input {
    width: 60px;
    min-height: 32px;
    padding: 4px 6px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13.5px;
    text-align: center;
    outline: none;
    color: var(--text-main);
    font-weight: 600;
}

.notice-number-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.notice-unit-select {
    padding: 4px 8px;
    min-height: 32px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 13.5px;
    background-color: #ffffff;
    cursor: pointer;
    outline: none;
    color: var(--text-main);
}

.notice-unit-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.notice-suffix-text {
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Side Calendar Overlay */
.calendar-overlay-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 500px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    border-right: 1.5px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.calendar-overlay-panel.open {
    opacity: 1;
    visibility: visible;
}

.calendar-panel-header {
    padding: 20px 24px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.calendar-timezone-header-label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.calendar-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.calendar-month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-month-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 36px;
    min-height: 36px;
}

.calendar-nav-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.calendar-grid-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-grid-table th {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-bottom: 12px;
}

.calendar-grid-table td {
    border: 1.5px solid var(--border-subtle);
    width: 14%;
    height: 94px;
    vertical-align: top;
    padding: 10px;
    box-sizing: border-box;
}

.calendar-day-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
}

.calendar-grid-table td.active-month .calendar-day-num {
    color: var(--text-main);
}

.calendar-day-hours {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.calendar-panel-footer {
    padding: 16px 24px;
    border-top: 1.5px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-calendar-close {
    background-color: var(--bg-hover);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 14.5px;
    font-weight: 600;
    min-height: 42px;
    cursor: pointer;
}

.btn-calendar-close:hover {
    background-color: #e2e8f0;
}

/* Date Specific Hours Section */
.date-specific-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 12px;
}

.date-specific-title-group {
    display: flex;
    flex-direction: column;
}

.date-specific-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-add-specific-hours {
    background: none;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    min-height: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-specific-hours:hover {
    background-color: var(--bg-hover);
    border-color: var(--text-main);
}

.date-specific-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1.5px solid var(--border-subtle);
}

.date-specific-item-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.date-specific-item-intervals {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-specific-none {
    font-size: 14.5px;
    color: var(--text-muted);
    font-style: italic;
    padding: 8px 0;
}

/* Date Specific Popup Modal */
.date-specific-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-specific-modal .modal-card {
    background-color: #ffffff;
    border-radius: 16px;
    width: 440px;
    padding: 28px;
    box-shadow: var(--modal-shadow);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.date-specific-modal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.modal-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.modal-month-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-calendar-nav {
    display: flex;
    gap: 4px;
}

.nav-arrow-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-arrow-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.modal-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.modal-calendar-table th {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    padding-bottom: 12px;
    text-transform: uppercase;
}

.modal-calendar-table td {
    width: 14.28%;
    text-align: center;
    padding: 6px 0;
}

.calendar-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.calendar-cell:hover {
    background-color: var(--bg-hover);
}

.calendar-cell.selected {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-modal-cancel {
    flex: 1;
    background: none;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    min-height: 46px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-modal-cancel:hover {
    background-color: var(--bg-hover);
}

.btn-modal-apply {
    flex: 1;
    background-color: var(--primary-color);
    border: none;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    min-height: 46px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-modal-apply:hover {
    background-color: var(--primary-hover);
}

/* ==========================================================================
   Profile Dropdown, Toasts, and Walkthroughs
   ========================================================================== */
.profile-dropdown-menu {
    width: 300px !important;
    border-radius: 12px !important;
    font-family: var(--db-font);
    border: 1.5px solid var(--border-color) !important;
    box-shadow: var(--modal-shadow) !important;
    padding: 16px 0 !important;
}

.profile-dropdown-header {
    padding: 8px 20px 14px 20px;
}

.profile-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    word-break: break-all;
}

.profile-plan-info {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-upgrade-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 4px;
}

.profile-dropdown-divider {
    height: 1.5px;
    background-color: var(--border-subtle);
    margin: 8px 0;
}

.profile-dropdown-section-title {
    padding: 8px 20px 4px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    min-height: 44px;
}

.profile-dropdown-item i {
    font-size: 19px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex-shrink: 0;
}

.profile-dropdown-item:hover,
.profile-dropdown-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
}

.profile-dropdown-item:hover i,
.profile-dropdown-item.active i {
    color: var(--primary-color);
}

.profile-dropdown-item.text-danger {
    color: var(--color-danger);
}

.profile-dropdown-item.text-danger:hover {
    background-color: var(--color-danger-bg);
    color: #7f1d1d;
}

.profile-dropdown-item.text-danger:hover i {
    color: #7f1d1d;
}

/* Floating Toast Notifications */
.clientloop-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clientloop-toast {
    background-color: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    font-family: var(--db-font);
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--modal-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.clientloop-toast.toast-success {
    border-left: 5px solid var(--color-success);
}

.clientloop-toast.toast-info {
    border-left: 5px solid var(--primary-color);
}

/* Walkthrough Modal */
.walkthrough-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.walkthrough-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.walkthrough-card {
    background-color: #ffffff;
    border-radius: 16px;
    width: 520px;
    max-width: 90%;
    padding: 36px;
    box-shadow: var(--modal-shadow);
    position: relative;
    font-family: var(--db-font);
}

.walkthrough-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.walkthrough-close:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.walkthrough-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
}

.walkthrough-step-content {
    font-size: 15.5px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 26px;
}

.walkthrough-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.walkthrough-dots {
    display: flex;
    gap: 8px;
}

.walkthrough-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.walkthrough-dot.active {
    background-color: var(--primary-color);
}

.btn-walkthrough {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    min-height: 44px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-walkthrough:hover {
    background-color: var(--primary-hover);
}

/* Card Action Dropdown Context Menu */
.card-dropdown-container {
    position: relative;
    display: inline-block;
}

.card-action-dropdown-menu {
    min-width: 260px;
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--modal-shadow);
    padding: 8px 0;
    margin-top: 4px;
    z-index: 1050;
}

.dropdown-item-custom-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-main);
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    cursor: pointer;
    min-height: 44px;
}

.dropdown-item-custom-menu:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-item-custom-menu .menu-icon {
    font-size: 18px;
    color: var(--text-muted);
    width: 22px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.dropdown-item-custom-menu:hover .menu-icon {
    color: var(--primary-color);
}

.dropdown-item-custom-menu .menu-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.dropdown-item-custom-menu .menu-item-title {
    font-size: 15px;
    font-weight: 600;
}

.dropdown-item-custom-menu .menu-item-sub {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-divider-menu {
    height: 1.5px;
    background-color: var(--border-subtle);
    margin: 8px 0;
}

/* ==========================================================================
   Custom Modals & Dialogs
   ========================================================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.custom-modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.custom-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 480px;
    max-width: 92%;
    box-shadow: var(--modal-shadow);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-modal-overlay.show .custom-modal-card {
    transform: scale(1);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1.5px solid var(--border-subtle);
}

.custom-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.btn-custom-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    min-width: 36px;
    min-height: 36px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-custom-modal-close:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.custom-modal-body {
    padding: 28px;
    color: var(--text-secondary);
    font-size: 15.5px;
    line-height: 1.6;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px;
    border-top: 1.5px solid var(--border-subtle);
    background-color: var(--bg-page);
}

.btn-custom-secondary {
    background-color: #ffffff;
    border: 1.5px solid var(--border-strong);
    color: var(--text-secondary);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-custom-secondary:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.btn-custom-primary {
    background-color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    color: #ffffff;
    border-radius: 25px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-custom-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.embed-code-textarea {
    width: 100%;
    height: 130px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    padding: 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-page);
    color: var(--text-main);
    resize: vertical;
    margin-top: 8px;
    box-sizing: border-box;
}

.note-textarea {
    width: 100%;
    height: 110px;
    padding: 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    font-size: 15.5px;
    color: var(--text-main);
    resize: vertical;
    margin-top: 8px;
    box-sizing: border-box;
}

.note-textarea:focus,
.embed-code-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
    outline: none;
}

.language-select-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    font-size: 15.5px;
    background-color: #ffffff;
    cursor: pointer;
    margin-top: 8px;
    color: var(--text-main);
}

.language-select-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

/* Appointment Details Styles */
.appointment-detail-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 15px;
}

.appointment-detail-row .detail-label {
    width: 140px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.appointment-detail-row .detail-value {
    color: var(--text-main);
    word-break: break-word;
    font-weight: 500;
}

.calendar-appointment-link {
    display: block;
    font-size: 13.5px;
    background-color: #e0f2fe;
    color: #0369a1;
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 4px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    border: 1px solid #bae6fd;
    transition: background-color 0.2s;
}

.calendar-appointment-link:hover {
    background-color: #bae6fd;
    color: #0c4a6e;
}

.calendar-appointment-details-footer {
    background-color: var(--bg-page);
    border-top: 3px solid var(--primary-color);
    padding: 20px 26px;
}

.footer-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.footer-details-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.btn-close-footer-details {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.btn-close-footer-details:hover {
    color: var(--text-main);
}

.footer-details-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.appt-detail-item {
    font-size: 14.5px;
    color: var(--text-main);
}

.appt-detail-item strong {
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 4px;
}

/* /* Event Card Hover Actions */
.event-card-hover-actions {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto !important;
    z-index: 5;
}

.event-card:hover .event-card-hover-actions,
.event-card:focus-within .event-card-hover-actions {
    opacity: 1;
    visibility: visible;
}

.hover-action-btn {
    border: 1px solid var(--border-color) !important;
    background-color: #ffffff !important;
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    pointer-events: auto !important;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.15s ease;
}

.hover-action-btn:hover {
    background-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Modal Booking Layout */
.modal-calendar-cell {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.modal-calendar-cell.inactive {
    color: #94a3b8;
    cursor: not-allowed;
}

.modal-calendar-cell.available {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.modal-calendar-cell.available:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.modal-calendar-cell.selected {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 800;
}

.modal-time-slot-btn {
    background-color: #ffffff;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    min-height: 40px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    width: 100%;
}

.modal-time-slot-btn:hover {
    background-color: var(--primary-light);
}

.modal-time-slot-btn.selected {
    background-color: var(--primary-color);
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
}

/* ==========================================================================
   Responsive Breakpoints & Zoom Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-content {
        padding: 16px 18px 32px 18px;
    }
    
    .event-card {
        padding: 8px 12px;
    }
    
    .card-details-line1 {
        gap: 6px;
    }
    
    .card-actions-wrapper {
        gap: 4px;
    }
}

@media (max-width: 768px) {
    body.dashboard-body {
        position: relative;
    }
    
    .dashboard-sidebar {
        position: fixed;
        left: -220px;
        top: 0;
        bottom: 0;
        width: 220px;
        z-index: 1050;
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 20px rgba(15, 23, 42, 0.15);
    }
    
    body.show-mobile-sidebar .dashboard-sidebar,
    body.sidebar-open .dashboard-sidebar {
        left: 0;
    }
    
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(15, 23, 42, 0.5);
        z-index: 1040;
        backdrop-filter: blur(2px);
    }
    
    body.show-mobile-sidebar .sidebar-backdrop,
    body.sidebar-open .sidebar-backdrop {
        display: block;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .dashboard-header {
        position: relative;
        top: auto;
        right: auto;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-subtle);
        justify-content: space-between;
        pointer-events: auto;
        padding: 0 14px;
        min-height: 48px;
        height: 48px;
    }
    
    .dashboard-brand-tagline {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 20px;
        color: var(--text-main);
        cursor: pointer;
        padding: 4px 6px;
        border-radius: 6px;
        min-width: 36px;
        min-height: 36px;
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus-visible {
        background-color: var(--bg-hover);
        color: var(--primary-color);
    }
    
    .dashboard-content {
        padding: 14px 12px 30px 12px;
    }
    
    .content-title-row {
        margin-bottom: 10px;
        padding-right: 0;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .dashboard-tabs {
        gap: 14px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        margin-bottom: 10px;
    }
    
    .tab-item {
        padding: 6px 2px;
        font-size: 13.5px;
    }
    
    .scheduling-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .toolbar-left, .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-container {
        flex-grow: 1;
        width: auto;
    }
    
    .dashboard-grid, .cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .event-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px !important;
        gap: 8px;
        position: relative;
        min-height: auto;
    }
    
    .event-card > .card-checkbox-wrapper {
        position: absolute;
        top: 12px;
        left: 12px;
        margin: 0;
    }
    
    .event-card > .card-details {
        padding-left: 26px;
    }
    
    .event-card > .card-actions-wrapper {
        margin-left: 26px !important;
        width: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        padding-left: 0;
    }
    
    .user-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
        background-color: #ffffff;
        border-radius: 8px;
        padding: 12px !important;
        border: 1px solid var(--border-color);
        position: relative;
    }
    
    .btn-view-landing {
        margin-left: 0 !important;
        margin-top: 2px;
    }
    
    .calendar-overlay-panel {
        right: 0 !important;
        width: 100% !important;
    }
}

/* ClientLoop Bootstrap Modal Component Overrides */
.modal-content {
    background-color: #ffffff;
    border-radius: 14px !important;
    border: 1.5px solid var(--border-color) !important;
    box-shadow: var(--modal-shadow) !important;
    overflow: hidden;
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1.5px solid var(--border-subtle);
    background-color: #ffffff;
}

.modal-title-custom {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
}

.btn-close-custom {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: background-color 0.15s, color 0.15s;
}

.btn-close-custom:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

/* ClientLoop Global Pill Button Styling - Top Choice Module */
.btn-primary-custom {
    background-color: #0056cc !important;
    color: #ffffff !important;
    border: 1.5px solid #0056cc !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    min-height: 38px !important;
    border-radius: 9999px !important; /* Full rounded pill style as in attached screenshot */
    cursor: pointer !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

.btn-primary-custom:hover {
    background-color: #00449e !important;
    border-color: #00449e !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 86, 204, 0.25) !important;
}

.btn-outline-custom {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    min-height: 38px !important;
    border-radius: 9999px !important; /* Full rounded pill style */
    cursor: pointer !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.btn-outline-custom:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}


