/* Modern Availability Table Redesign */

/* Enhanced CSS Custom Properties for Premium Design */
:root {
    /* Z-index scale - Enhanced hierarchy */
    --z-sticky: 10;
    --z-sticky-header: 15;
    --z-sticky-table-column: 20;
    --z-dropdown: 30;
    --z-modal: 40;
    --z-tooltip: 50;

    /* Enhanced Availability Colors - Better Cyan/Teal */
    --availability-available: #84cc16;
    --availability-available-secondary: #65a30d;
    --availability-limited: #f59e0b;
    --availability-unavailable: #64748b;
    --availability-selected: #B8C98A; /* Comment #19: Light grey-green for selected/picked state */
    --availability-hover: rgba(59, 130, 246, 0.1);

    /* Premium Holiday Colors */
    --holiday-primary: #dc2626;
    --holiday-secondary: #f87171;
    --holiday-background: rgba(220, 38, 38, 0.08);

    /* Enhanced Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Enhanced Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;

    /* Optimized Layout Dimensions - Compact */
    /* FIXED Comment #2: Increased cell size for better visibility */
    --room-column-width: 180px;
    --room-column-width-mobile: 120px;
    --cell-size: 75px;  /* Increased from 65px for better visibility */
    --cell-size-mobile: 60px;  /* Increased from 50px */
    --header-padding: 0.75rem;
    --room-cell-height: 55px;

    /* Enhanced Typography */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Premium Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Enhanced Transitions */
    --transition-fast: 150ms ease-out;
    --transition-normal: 250ms ease-out;
    --transition-slow: 350ms ease-out;
}

/* Premium Main Container with Enhanced Visual Design */
.availability-table-redesigned {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 250, 252, 0.95) 50%,
        rgba(241, 245, 249, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.availability-table-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    z-index: 1;
}

.availability-table-redesigned:hover {
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Dark Theme Support for Main Container */
[data-theme="dark"] .availability-table-redesigned {
    background: linear-gradient(135deg, #2d2d30 0%, #1e1e1e 100%);
    border-color: #404040;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .availability-table-redesigned:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
}

/* Premium Header Section with Enhanced Visual Hierarchy */
.availability-header-redesigned {
    background: linear-gradient(135deg,
        rgba(248, 250, 252, 0.95) 0%,
        rgba(241, 245, 249, 0.9) 50%,
        rgba(226, 232, 240, 0.85) 100%);
    backdrop-filter: blur(10px);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: var(--z-sticky-header);
}

/* Dark Theme Support for Header */
[data-theme="dark"] .availability-header-redesigned {
    background: linear-gradient(135deg, #2d2d30 0%, #404040 100%);
    border-bottom-color: #404040;
}

.availability-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-lg);
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(139, 92, 246, 0.06) 50%,
        rgba(59, 130, 246, 0.04) 100%);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow:
        0 2px 8px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.availability-title {
    font-size: 1.3rem !important;
    font-weight: var(--font-weight-bold) !important;
    /* Comment #19: Flat design - solid olive green, no gradients */
    background-color: #556B2F; /* Comment #19: Muted olive green */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
    letter-spacing: -0.025em;
}

.availability-title i {
    color: #0078d4;
    font-size: 1rem;
}

.availability-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.2;
    font-weight: 400;
}

/* Navigation Controls - Compact Layout */
.availability-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: nowrap;
    width: 100%;
}

.view-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.view-btn {
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
    min-height: 36px;
    position: relative;
    overflow: hidden;
}

.view-btn.active {
    /* Comment #19: Light grey-green for selected/picked state - flat design */
    background-color: #B8C98A;
    color: white;
    box-shadow: none; /* Flat design - no shadows */
    transform: none; /* Flat design - no transforms */
}

.view-btn:hover:not(.active) {
    /* Comment #19: Lighter green on hover - flat design */
    background: rgba(107, 142, 35, 0.1); /* Olive green with transparency */
    color: #556B2F; /* Comment #19: Muted olive green */
    transform: none; /* Flat design - no transforms */
    box-shadow: none; /* Flat design - no shadows */
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-fast);
}

.view-btn:hover::before {
    left: 100%;
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-btn-group {
    display: flex;
    gap: 2px;
    background: var(--background-secondary);
    border-radius: 5px;
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-btn-group .nav-btn {
    border-radius: 4px;
    box-shadow: none;
}

.nav-btn-today {
    /* Comment #19: Flat design - solid olive green, no gradients */
    background-color: #556B2F; /* Comment #19: Muted olive green */
    color: white;
    border: 1px solid #556B2F; /* Comment #19: Muted olive green */
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    padding: var(--space-sm) var(--space-lg);
    min-width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow:
        0 2px 8px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.nav-btn-today:hover {
    /* Comment #19: Light grey-green for selected/picked state - flat design */
    background-color: #B8C98A;
    transform: translateY(-2px);
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-btn-today::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.nav-btn-today:hover::before {
    left: 100%;
}

.date-display {
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    color: #556B2F; /* Comment #19: Muted olive green */
    min-width: 140px;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(139, 92, 246, 0.08) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
    line-height: 1.2;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-btn {
    height: 40px;
    width: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: #64748b;
    font-size: 0.875rem;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    border-color: #556B2F; /* Comment #19: Muted olive green */
    color: #556B2F; /* Comment #19: Muted olive green */
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-fast);
}

.nav-btn:hover::after {
    width: 100%;
    height: 100%;
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn i {
    font-size: var(--font-size-base);
    line-height: 1;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Legend */
.availability-legend-redesigned {
    background: var(--background-color);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legend-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item-redesigned {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend-dot.available {
    background: var(--availability-available);
}

.legend-dot.unavailable {
    background: #64748b;
}

.legend-dot.selected {
    background: var(--primary-color);
}

/* Enhanced Calendar Grid */
.calendar-grid-redesigned {
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(248, 250, 252, 0.6) 100%);
    border-radius: var(--radius-lg);
    margin: var(--space-md);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
    /* CRITICAL: Required for sticky positioning to work properly */
    contain: none;
    transform: translateZ(0);
}

/* Month view - better overflow handling for many columns */
.availability-table-redesigned[data-view="month"] .calendar-grid-redesigned {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    /* Force horizontal scroll instead of column compression */
    white-space: nowrap;
}

.calendar-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 5px;
    margin: 0;
    table-layout: fixed;
    display: table;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-md);
    /* CRITICAL: Enable sticky positioning context */
    position: relative;
    isolation: isolate;
}

/* Month view specific table width to accommodate more columns */
.availability-table-redesigned[data-view="month"] .calendar-table {
    min-width: 1200px !important;
    /* Wider for 14 columns instead of 30 */
    width: auto !important;
    table-layout: fixed !important;
}

/* Consolidated room column width rules */
.availability-table-redesigned[data-view="month"] .calendar-table th:first-child,
.availability-table-redesigned[data-view="month"] .calendar-table td:first-child,
.availability-table-redesigned[data-view="month"] .room-header-cell,
.availability-table-redesigned[data-view="month"] .room-info-cell,
.room-header-cell,
.room-info-cell {
    width: var(--room-column-width) !important;
    min-width: var(--room-column-width) !important;
    max-width: var(--room-column-width) !important;
    flex: 0 0 var(--room-column-width) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* Table Headers */
.calendar-header-row {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky-header);
    display: table-row;
}

.calendar-header-row th {
    display: table-cell;
    vertical-align: middle;
}

.room-header-cell {
    background: linear-gradient(135deg,
        rgba(248, 250, 252, 0.9) 0%,
        rgba(241, 245, 249, 0.8) 50%,
        rgba(226, 232, 240, 0.7) 100%);
    color: #1e293b;
    padding: var(--space-sm) var(--space-sm);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem !important;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: sticky;
    left: 0px;
    z-index: var(--z-sticky-table-column);
    transform: translateZ(0);
    contain: none;
    isolation: isolate;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: var(--room-column-width);
    max-width: var(--room-column-width);
    height: var(--room-cell-height);
    vertical-align: middle;
    position: relative;
    overflow: hidden;
}

/* This rule is now covered by the consolidated rule above */


.room-header-cell::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    bottom: 0;
    width: 20px;
    background: var(--primary-color);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.date-header-cell {
    background: linear-gradient(135deg,
        rgba(248, 250, 252, 0.9) 0%,
        rgba(241, 245, 249, 0.8) 50%,
        rgba(226, 232, 240, 0.7) 100%);
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-md);
    text-align: center;
    width: var(--cell-size);
    min-width: var(--cell-size);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.date-header-cell.weekend {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 2px solid #f59e0b;
    font-weight: 800;
}

/* Enhanced weekend styling */
.date-header-cell.weekend .date-number {
    color: #d97706;
    font-weight: 900;
}

.date-header-cell.weekend .date-day-name {
    color: #92400e;
    font-weight: 700;
}

/* Dark theme weekend headers */
[data-theme="dark"] .date-header-cell.weekend {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    color: #fbbf24;
    border: 2px solid #d97706;
}

[data-theme="dark"] .date-header-cell.weekend .date-number {
    color: #fbbf24;
}

[data-theme="dark"] .date-header-cell.weekend .date-day-name {
    color: #fcd34d;
}

/* Holiday header styling */
.date-header-cell.holiday {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border: 2px solid #ef4444;
    font-weight: 800;
}

.date-header-cell.holiday .date-number {
    color: #dc2626;
    font-weight: 900;
}

.date-header-cell.holiday .date-day-name {
    color: #b91c1c;
    font-weight: 700;
}

.holiday-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.125rem;
    line-height: 1;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

/* Dark theme holiday headers */
[data-theme="dark"] .date-header-cell.holiday {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
    color: #fca5a5;
    border: 2px solid #dc2626;
}

[data-theme="dark"] .date-header-cell.holiday .date-number {
    color: #fca5a5;
}

[data-theme="dark"] .date-header-cell.holiday .date-day-name {
    color: #fecaca;
}

[data-theme="dark"] .holiday-name {
    color: #fca5a5;
    background: rgba(252, 165, 165, 0.2);
}

.date-number {
    display: block;
    font-size: 1.25rem;
    font-weight: var(--font-weight-extrabold);
    color: #1e293b;
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.date-day-name {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: var(--font-weight-semibold);
    opacity: 0.8;
}

/* Room Rows */
.room-row {
    transition: all 0.2s ease;
    display: table-row;
}

.room-row:hover {
    transform: translateY(-2px);
}

.room-row td {
    display: table-cell;
    vertical-align: middle;
}

.room-info-cell {
    /* Modern Professional Background */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(249, 250, 251, 0.95) 50%,
        rgba(243, 244, 246, 0.92) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-md);

    /* Ultra-Compact Spacing and Layout */
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2px;

    /* Enhanced Professional Shadows */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);

    /* Sticky Positioning */
    position: sticky;
    left: 0px;
    z-index: var(--z-sticky-table-column);
    transform: translateZ(0);
    contain: none;
    isolation: isolate;

    /* Ultra-Compact Responsive Dimensions */
    min-width: var(--room-column-width) !important;
    max-width: var(--room-column-width) !important;
    width: var(--room-column-width) !important;
    height: auto;
    min-height: 55px;
    max-height: 70px;

    /* Professional Interactions */
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    line-height: 1.2;
    font-size: 0.8rem;
}

/* Professional Hover Effects */
.room-info-cell:hover {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(248, 250, 252, 0.98) 50%,
        rgba(241, 245, 249, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 1px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(59, 130, 246, 0.08);
    transform: translateZ(0) translateY(-1px);
}

/* UNIFIED: Remove redundant month view overrides - inherits base styles */

/* Force table layout for month view */
[data-view="month"] .availability-table-redesigned {
    overflow-x: auto !important;
}

/* Ensure header cells are also sticky in month view */
[data-view="month"] .availability-table-redesigned .room-header-cell {
    position: sticky !important;
    left: 0px !important;
    z-index: var(--z-sticky-table-column) !important;
    transform: translateZ(0) !important;
    contain: none !important;
    isolation: isolate !important;
    /* Inherit base room-header-cell styling - no background override */
}

/* UNIFIED: Dark theme month view inherits from base dark theme styles - NO overrides */

[data-view="month"] .availability-table-redesigned .calendar-table {
    table-layout: fixed !important;
    min-width: 2400px !important;
    /* CRITICAL: Ensure table supports sticky positioning */
    border-collapse: separate !important;
    border-spacing: 5px !important;
    position: relative !important;
    contain: none !important;
    isolation: isolate !important;
}

/* UNIVERSAL STICKY RULES - Apply to ALL view modes */
.calendar-table th:first-child,
.calendar-table td:first-child,
.room-header-cell,
.room-info-cell {
    position: sticky !important;
    left: 0px !important;
    transform: translateZ(0) !important;
    contain: none !important;
    isolation: isolate !important;
}

/* Week view sticky rules */
[data-view="week"] .calendar-table th:first-child,
[data-view="week"] .calendar-table td:first-child,
[data-view="week"] .room-header-cell,
[data-view="week"] .room-info-cell {
    position: sticky !important;
    left: 0px !important;
    z-index: var(--z-sticky-table-column) !important;
    transform: translateZ(0) !important;
    contain: none !important;
    isolation: isolate !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12) !important;
}

/* CRITICAL: Force sticky positioning for all room type cells in month view */
[data-view="month"] .calendar-table .room-header-cell,
[data-view="month"] .calendar-table th:first-child {
    position: sticky !important;
    left: 0px !important;
    z-index: var(--z-sticky-table-column) !important;
    /* Inherit base room-header-cell styling */
    transform: translateZ(0) !important;
    /* Force width to prevent compression */
    width: var(--room-column-width) !important;
    min-width: var(--room-column-width) !important;
    max-width: var(--room-column-width) !important;
    /* Enhanced shadow for month view */
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15) !important;
    /* Ensure sticky context */
    contain: none !important;
    isolation: isolate !important;
}

/* UNIFIED: Month view calendar table inherits all base room-info-cell styles */
[data-view="month"] .calendar-table .room-info-cell,
[data-view="month"] .calendar-table td:first-child {
    /* Inherits unified background and all properties from base .room-info-cell */
    /* Additional border for scroll separation */
    border-right: 2px solid rgba(0, 120, 212, 0.15) !important;
    /* CRITICAL: Force sticky positioning */
    position: sticky !important;
    left: 0px !important;
    z-index: var(--z-sticky-table-column) !important;
    transform: translateZ(0) !important;
    contain: none !important;
    isolation: isolate !important;
    /* Enhanced shadow for better visibility */
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12) !important;
}

/* Dark theme support for forced sticky */
[data-theme="dark"][data-view="month"] .calendar-table .room-header-cell,
[data-theme="dark"][data-view="month"] .calendar-table th:first-child {
    /* Inherit base dark theme room-header-cell styling */
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2) !important;
}

/* UNIFIED: Dark theme month view inherits from base dark theme room-info-cell */
[data-theme="dark"][data-view="month"] .calendar-table .room-info-cell,
[data-theme="dark"][data-view="month"] .calendar-table td:first-child {
    /* Inherits unified dark theme background from base dark theme room-info-cell */
    /* Additional border for scroll separation */
    border-right: 2px solid rgba(88, 166, 255, 0.2) !important;
}

/* CRITICAL: Ensure availability cells have lower z-index than sticky column */
[data-view="month"] .availability-cell-redesigned {
    z-index: var(--z-calendar-cell) !important;
}

[data-view="month"] .availability-cell-redesigned:hover {
    z-index: var(--z-calendar-cell) !important;
}

/* Ensure selected range cells are below room column */
.availability-cell-redesigned.selected-range {
    z-index: var(--z-selection-range) !important;
}

.availability-cell-redesigned.check-in,
.availability-cell-redesigned.check-out {
    z-index: var(--z-calendar-selection) !important;
}

.room-info-cell::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    bottom: 0;
    width: 20px;
    background: var(--surface-color);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.availability-table-redesigned .room-name {
    /* Compact Professional Typography */
    font-size: 1.0rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;

    /* Compact Layout */
    margin: 0 0 1px 0;
    padding: 0;
    line-height: 1.2;

    /* Text Handling */
    display: block;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 2.4em;

    /* Visual Enhancement */
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.05);
    position: relative;

    /* Compact Room Type Indicator */
    padding-left: 10px;
}

/* Modern Room Type Indicators */
.availability-table-redesigned .room-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.availability-table-redesigned .room-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Different room type colors */
.room-info-cell[data-room-type="standard"] .room-name::before {
    background: linear-gradient(45deg, #10b981, #059669);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.room-info-cell[data-room-type="superior"] .room-name::before {
    /* Comment #19: Flat design - solid olive green, no gradients */
    background-color: #556B2F; /* Comment #19: Muted olive green */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.room-info-cell[data-room-type="deluxe"] .room-name::before {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.room-info-cell[data-room-type="suite"] .room-name::before {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.room-info-cell[data-room-type="villa"] .room-name::before {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.room-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 0.65rem;
    line-height: 1.1;
    color: #64748b;
    margin-top: 1px;
    overflow: hidden;
    align-items: flex-start;
    align-content: flex-start;
}

/* Professional View Mode Adaptations */

/* Week view - Show room details for better information density */
.availability-table-redesigned[data-view="week"] .room-details {
    display: flex !important;
    margin-top: 2px;
}

.availability-table-redesigned[data-view="week"] .room-info-cell {
    min-height: 65px !important;
    max-height: 75px !important;
    justify-content: flex-start !important;
    padding-top: 6px !important;
}

/* Month view - Hide room details for ultra-compact layout */
.availability-table-redesigned[data-view="month"] .room-details {
    display: none !important;
}

.availability-table-redesigned[data-view="month"] .room-detail {
    display: none !important;
}

.availability-table-redesigned[data-view="month"] .room-info-cell {
    min-height: 50px !important;
    max-height: 60px !important;
    justify-content: center !important;
}

.availability-table-redesigned[data-view="month"] .room-name {
    text-align: center !important;
    max-height: 2.4em !important;
    line-height: 1.2 !important;
    font-size: 0.75rem !important;
}

.room-detail {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.1;
    padding: 0;
    background: none;
    border: none;
    transition: color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.room-detail:hover {
    color: #374151;
}

/* Professional Icons for Room Details */
.room-detail i {
    font-size: 0.7rem;
    color: #9ca3af;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.room-detail:hover i {
    color: #6b7280;
}

/* Specific icon styling */
.room-detail .bi-people {
    color: #10b981;
}

.room-detail .bi-arrows-fullscreen {
    color: #8b5cf6;
}

.room-detail .bi-bed {
    color: #f59e0b;
}

/* Icon fallback system */
.room-detail .icon-fallback {
    font-size: 0.7rem;
    margin-right: 0.2rem;
    display: none !important;
}

/* Show fallback if Bootstrap Icons fail to load */
@supports not (font-family: "bootstrap-icons") {
    .room-detail i.bi {
        display: none !important;
    }

    .room-detail .icon-fallback {
        display: inline !important;
    }
}

/* FIXED Comment #3: Show More link styling - replaces room details */
.room-show-more-link {
    display: inline-flex;
    align-items: center;
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.375rem;
    transition: all 0.2s ease;
    gap: 0.25rem;
}

.room-show-more-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.room-show-more-link i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.room-show-more-link:hover i {
    transform: translateX(2px);
}

/* Dark theme for Show More link */
[data-theme="dark"] .room-show-more-link {
    color: #6ea8fe;
}

[data-theme="dark"] .room-show-more-link:hover {
    color: #8bb4fe;
}

/* FIXED Comment #6: Today unavailable styling (same-day bookings disabled) */
.today-unavailable {
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
    opacity: 0.6;
    cursor: not-allowed !important;
}

.today-unavailable .availability-count {
    color: #9ca3af !important;
}

[data-theme="dark"] .today-unavailable {
    background-color: rgba(107, 114, 128, 0.3) !important;
    color: rgba(156, 163, 175, 0.7) !important;
}

[data-theme="dark"] .today-unavailable .availability-count {
    color: rgba(156, 163, 175, 0.7) !important;
}

/* Premium Availability Cells */
.availability-cell-redesigned {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8); /* Reduced border width for no gaps */
    border-radius: 0; /* Square corners - no border-radius */
    padding: var(--space-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    width: var(--cell-size);
    height: var(--cell-size);
    min-height: var(--cell-size);
    max-height: var(--cell-size);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: none; /* Flat design - no shadows */
    backdrop-filter: blur(8px);
    overflow: hidden;
    margin: 0; /* No gaps between cells */
}

/* Ensure consistent cell heights across all views */
.availability-table-redesigned .availability-cell-redesigned {
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
}

.availability-cell-redesigned:hover {
    /* Comment #19: Flat design - no transforms or blue shadows */
    transform: none; /* Flat design - no transforms */
    box-shadow: none; /* Flat design - no shadows */
    border-color: #9CAF50; /* Comment #19: Lighter green on hover */
    z-index: var(--z-calendar-cell);
}

.availability-cell-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.availability-cell-redesigned:hover::before {
    opacity: 1;
}

/* Premium Availability States */
.availability-cell-redesigned.available {
    background: linear-gradient(135deg,
        var(--availability-available) 0%,
        var(--availability-available-secondary) 100%);
    border: 2px solid var(--availability-available-secondary);
    color: white;
    font-weight: var(--font-weight-bold);
    position: relative;
    box-shadow:
        0 2px 8px rgba(8, 145, 178, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.availability-cell-redesigned.available:hover {
    background: linear-gradient(135deg,
        var(--availability-available-secondary) 0%,
        #0a5f72 100%);
    border-color: #0a5f72;
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 4px 12px rgba(8, 145, 178, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


.availability-box {
    border-radius: 5px;
    padding: 7px 10px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: floralwhite;
    max-width: max-content;
    place-self: center;
}

.availability-cell-redesigned.unavailable {
    background: linear-gradient(135deg,
        #64748b 0%,
        #475569 50%,
        #334155 100%);
    border: 2px solid #334155;
    color: white;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    /* Default to pointer - user can still select these dates */
    position: relative;
    opacity: 0.8;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.availability-cell-redesigned.unavailable:hover {
    /* Allow hover effects on unavailable cells before range selection */
    cursor: pointer;
    /* User can still select these dates to start a range */
}

/* Selection States - Modern Solid Colors */
.availability-cell-redesigned.check-in,
.availability-cell-redesigned.available.check-in {
    /* Comment #19: Sandy brown for check-in - flat design */
    background: #D2B48C !important; /* Sandy brown - use 'background' not 'background-color' to override gradient */
    background-image: none !important; /* Remove any gradient */
    border: 2px solid #C4A57B !important; /* Darker sandy brown border */
    color: #5a4a3a !important; /* Dark brown text for contrast */
    /* FIXED: Remove transform to prevent overlapping during scroll */
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-calendar-selection);
    margin: 0 !important; /* No gaps between cells */
}

/* FIXED Comment #11: Light sage green for checkout */
.availability-cell-redesigned.check-out,
.availability-cell-redesigned.available.check-out {
    /* Comment #19: Light sage green for checkout - flat design */
    background-color: #B8C98A !important; /* Light sage green - override available styles */
    border: 1px solid #9CAF50 !important; /* Medium sage green border */
    color: #ffffff !important; /* White text for contrast */
    font-weight: 900 !important;
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-calendar-selection) !important;
    margin: 0 !important; /* No gaps between cells */
}

/* ENHANCED LIGHT THEME SELECTION VISIBILITY - Sandy brown for selected range */
.availability-cell-redesigned.in-range,
.availability-cell-redesigned.available.in-range {
    /* Comment #19: Sandy brown for selected range - flat design - MUST override available gradient */
    background: #D2B48C !important; /* Sandy brown - use 'background' not 'background-color' to override gradient */
    background-image: none !important; /* Remove any gradient */
    border: 1px solid #C4A57B !important; /* Darker sandy brown border */
    color: #5a4a3a !important; /* Dark brown text for contrast */
    font-weight: 800 !important;
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-selection-range) !important;
    position: relative;
    margin: 0 !important; /* No gaps between cells */
}

/* Enhanced check-in and check-out styling for light theme - Sandy brown */
.availability-cell-redesigned.check-in,
.availability-cell-redesigned.available.check-in {
    /* Comment #19: Sandy brown for check-in - flat design - MUST override available gradient */
    background: #D2B48C !important; /* Sandy brown - use 'background' not 'background-color' to override gradient */
    background-image: none !important; /* Remove any gradient */
    border: 2px solid #C4A57B !important; /* Darker sandy brown border */
    color: #5a4a3a !important; /* Dark brown text for contrast */
    font-weight: 900 !important;
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-calendar-selection) !important;
    margin: 0 !important; /* No gaps between cells */
}

/* FIXED Comment #11: Sandy brown for checkout */
.availability-cell-redesigned.check-out,
.availability-cell-redesigned.available.check-out {
    /* Comment #19: Sandy brown for checkout - flat design - MUST override available gradient */
    background: rgba(210, 180, 140, 0.8) !important; /* Lighter sandy brown - use 'background' not 'background-color' to override gradient */
    background-image: none !important; /* Remove any gradient */
    border: 1px solid #C4A57B !important; /* Darker sandy brown border */
    color: #5a4a3a !important; /* Dark brown text for contrast */
    font-weight: 900 !important;
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-calendar-selection) !important;
    margin: 0 !important; /* No gaps between cells */
}


/* Check-in date with UNAVAILABLE/FULL status - Simplified */
.availability-cell-redesigned.check-in.unavailable {
    background: #64748b !important;
    border: 3px solid #475569 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    /* FIXED: Remove transform to prevent overlapping during scroll */
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-calendar-selection) !important;
    margin: 0 !important; /* No gaps between cells */
}

/* Enhanced text visibility for light theme selections */
.availability-cell-redesigned.in-range .availability-count,
.availability-cell-redesigned.check-in .availability-count,
.availability-cell-redesigned.check-out .availability-count {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown */
    font-weight: 900 !important;
    text-shadow: none !important; /* Flat design - no shadows */
    font-size: 1.6rem !important;
    /* Match the normal available size */
}

.availability-cell-redesigned.in-range .availability-status,
.availability-cell-redesigned.check-in .availability-status,
.availability-cell-redesigned.check-out .availability-status {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent with availability-count */
    font-weight: 700 !important;
    text-shadow: none !important; /* Flat design - no shadows */
}


.availability-cell-redesigned.in-range.unavailable {
    background: #64748b !important;
    border: 3px solid #475569 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    /* FIXED: Remove transform to prevent overlapping during scroll */
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2) !important;
    z-index: var(--z-selection-range) !important;
    position: relative;
    margin: 1px;
}

.availability-cell-redesigned.in-range.unavailable:hover {
    /* Remove hover effects on unavailable cells even when in selected range */
    cursor: not-allowed !important;
    transform: none !important;
    filter: none !important;
    /* Keep original in-range unavailable styling */
}

/* NEW: Special styling for rooms that have unavailable dates in selected range */
.availability-cell-redesigned.range-unavailable {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 2px solid #b91c1c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
    position: relative;
    opacity: 0.85 !important;
}

.availability-cell-redesigned.range-unavailable:hover {
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4) !important;
}

.availability-cell-redesigned.range-unavailable::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 8px;
    opacity: 0.8;
}

/* Cell Content - Bigger, more readable numbers */
.availability-count {
    font-size: 1.5rem;
    /* Much larger */
    font-weight: 900;
    margin-bottom: 0;
    display: block;
    line-height: 1;
}

/* Comment #17: Availability icons (check/cross) when numbers are disabled */
/* Icons are 50% of cell size for better visibility */
.availability-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem !important; /* Approximately 50% of 75px cell (37.5px) */
    line-height: 1;
}

.availability-icon i {
    display: block;
    font-size: inherit;
    width: 1em;
    height: 1em;
}

.availability-cell-redesigned.available .availability-icon {
    color: #16a34a !important; /* Brighter, more noticeable green */
    filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.3));
}

.availability-cell-redesigned.unavailable .availability-icon,
.availability-cell-redesigned.limited .availability-icon {
    color: #dc2626 !important; /* Bright red for better visibility */
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
}

/* Dark theme icons - more vibrant colors */
[data-theme="dark"] .availability-cell-redesigned.available .availability-icon {
    color: #22c55e !important; /* Bright green for dark theme */
    filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.4));
}

[data-theme="dark"] .availability-cell-redesigned.unavailable .availability-icon,
[data-theme="dark"] .availability-cell-redesigned.limited .availability-icon {
    color: #ef4444 !important; /* Bright red for dark theme */
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.4));
}

/* Min/Actual availability split display (for range selection) */
.availability-count-split {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.availability-count-min {
    font-size: 1.5rem;
    font-weight: 900;
}

/* Ensure consistent font sizes in selected range - desktop */
.availability-cell-redesigned.in-range .availability-count-min,
.availability-cell-redesigned.check-in .availability-count-min,
.availability-cell-redesigned.check-out .availability-count-min {
    font-size: 1.6rem !important; /* Match availability-count size for consistency */
}

.availability-count-separator {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 1px;
}

/* Ensure consistent font sizes in selected range - desktop */
.availability-cell-redesigned.in-range .availability-count-separator,
.availability-cell-redesigned.check-in .availability-count-separator,
.availability-cell-redesigned.check-out .availability-count-separator {
    font-size: 1.6rem !important; /* Match availability-count size for consistency */
}

/* Ensure consistent font sizes in selected range */
.availability-cell-redesigned.in-range .availability-count-separator,
.availability-cell-redesigned.check-in .availability-count-separator,
.availability-cell-redesigned.check-out .availability-count-separator {
    font-size: 1.6rem !important; /* Match availability-count size for consistency */
}

.availability-count-actual {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.65;
    margin-left: 1px;
}

/* Ensure consistent font sizes in selected range - desktop */
.availability-cell-redesigned.in-range .availability-count-actual,
.availability-cell-redesigned.check-in .availability-count-actual,
.availability-cell-redesigned.check-out .availability-count-actual {
    font-size: 1.1rem !important; /* Consistent size for secondary text */
}

/* Style adjustments for selected range cells with split display */
.availability-cell-redesigned.in-range .availability-count-split,
.availability-cell-redesigned.check-in .availability-count-split,
.availability-cell-redesigned.check-out .availability-count-split {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
}

.availability-cell-redesigned.in-range .availability-count-min,
.availability-cell-redesigned.check-in .availability-count-min,
.availability-cell-redesigned.check-out .availability-count-min,
.availability-cell-redesigned.in-range .availability-count-separator,
.availability-cell-redesigned.check-in .availability-count-separator,
.availability-cell-redesigned.check-out .availability-count-separator {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
    text-shadow: none !important; /* Flat design - no shadows */
    font-weight: 900 !important;
}

.availability-cell-redesigned.in-range .availability-count-actual,
.availability-cell-redesigned.check-in .availability-count-actual,
.availability-cell-redesigned.check-out .availability-count-actual {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
    opacity: 0.8 !important; /* Slightly lighter for secondary text */
    text-shadow: none !important; /* Flat design - no shadows */
    font-weight: 600 !important;
}

/* Dark theme for split display */
[data-theme="dark"] .availability-cell-redesigned.in-range .availability-count-min,
[data-theme="dark"] .availability-cell-redesigned.check-in .availability-count-min,
[data-theme="dark"] .availability-cell-redesigned.in-range .availability-count-separator,
[data-theme="dark"] .availability-cell-redesigned.check-in .availability-count-separator,
[data-theme="dark"] .availability-cell-redesigned.check-out .availability-count-separator {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
    text-shadow: none !important; /* Flat design - no shadows */
}

[data-theme="dark"] .availability-cell-redesigned.in-range .availability-count-actual,
[data-theme="dark"] .availability-cell-redesigned.check-in .availability-count-actual,
[data-theme="dark"] .availability-cell-redesigned.in-range .availability-count-actual,
[data-theme="dark"] .availability-cell-redesigned.check-out .availability-count-actual {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
    opacity: 0.8 !important; /* Slightly lighter for secondary text */
    text-shadow: none !important; /* Flat design - no shadows */
}

/* Improved number visibility in available cells */
.availability-cell-redesigned.available .availability-count {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 900;
    font-size: 1.6rem;
    /* Even bigger for available */
}

/* Unavailable cells - clear grey numbers */
.availability-cell-redesigned.unavailable .availability-count {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    font-size: 1.5rem;
}

/* Dark theme available cell numbers */
[data-theme="dark"] .availability-cell-redesigned.available .availability-count {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 900;
    font-size: 1.6rem;
}

[data-theme="dark"] .availability-cell-redesigned.unavailable .availability-count {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 900;
    font-size: 1.5rem;
}

[data-theme="dark"] .calendar-table {
    background: rgb(0 0 0 / 50%);
}

.availability-status {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    display: block;
}

/* Hide status text completely since we removed it */
.availability-cell-redesigned .availability-status {
    display: none;
}

/* Status Icons */
/* .availability-cell-redesigned.check-in::before {
    content: '📅';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-size-base);
    background: var(--surface-color);
    border-radius: 50%;
    padding: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
} */

/* .availability-cell-redesigned.check-out::before {
    content: '🏃';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-size-base);
    background: var(--surface-color);
    border-radius: 50%;
    padding: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
} */

/* Action Footer */
.availability-actions-redesigned {
    background: var(--background-color);
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.selection-info {
    flex: 1;
}

.selection-message {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.selection-details {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.75rem;
    display: none;
}

.selection-details[style*="display: block"] {
    display: block !important;
}

.selection-summary {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.availability-legend {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3b82f6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.availability-legend .legend-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.availability-legend .text-primary {
    color: #556B2F; /* Comment #19: Muted olive green */
    font-weight: 700;
}

.action-buttons-redesigned {
    display: flex;
    gap: 1rem;
}

.btn-clear {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.btn-proceed {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.2);
}

.btn-proceed:hover {
    background: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
}

.btn-proceed:disabled,
.btn-proceed.disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}

.btn-proceed:disabled:hover,
.btn-proceed.disabled:hover {
    background: #cbd5e1 !important;
    color: #64748b !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Enhanced Dark Theme Support */
[data-theme="dark"] .availability-table-redesigned {
    background: linear-gradient(145deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(15, 23, 42, 0.9) 50%,
        rgba(2, 6, 23, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(71, 85, 105, 0.6);
    box-shadow:
        var(--shadow-xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .availability-header-redesigned {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.9) 50%,
        rgba(71, 85, 105, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(71, 85, 105, 0.6);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .availability-title-section {
    background: linear-gradient(135deg,
        rgba(88, 166, 255, 0.15) 0%,
        rgba(139, 92, 246, 0.12) 50%,
        rgba(88, 166, 255, 0.08) 100%);
    border: 1px solid rgba(88, 166, 255, 0.25);
    box-shadow:
        0 2px 8px rgba(88, 166, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .availability-title {
    background: linear-gradient(135deg, #f8fafc 0%, #88a6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .availability-title i {
    color: #60a5fa;
}

[data-theme="dark"] .availability-subtitle {
    color: #cbd5e1;
}

[data-theme="dark"] .view-selector {
    background: #334155;
}

[data-theme="dark"] .view-btn {
    color: #cbd5e1;
}

[data-theme="dark"] .view-btn.active {
    background: #58a6ff;
    color: white;
}

[data-theme="dark"] .view-btn:hover:not(.active) {
    background: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .date-display {
    color: #58a6ff;
}

[data-theme="dark"] .nav-btn {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

[data-theme="dark"] .nav-btn:hover {
    border-color: #58a6ff;
    color: #58a6ff;
    background: #1e293b;
}

[data-theme="dark"] .nav-btn:disabled {
    opacity: 0.5;
    background: #475569;
    border-color: var(--text-secondary);
    color: var(--text-muted);
}

[data-theme="dark"] .availability-legend-redesigned {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .room-header-cell {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 0.9) 0%,
        rgba(30, 41, 59, 0.8) 50%,
        rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(71, 85, 105, 0.8);
    color: #f8fafc;
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .date-header-cell {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 0.9) 0%,
        rgba(30, 41, 59, 0.8) 50%,
        rgba(15, 23, 42, 0.7) 100%);
    color: #f8fafc;
    border: 1px solid rgba(71, 85, 105, 0.8);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

[data-theme="dark"] .date-header-cell.weekend {
    background: #1e3a5f;
    color: #58a6ff;
}

[data-theme="dark"] .date-number {
    color: #58a6ff;
}

[data-theme="dark"] .date-day-name {
    color: #cbd5e1;
}

[data-theme="dark"] .room-info-cell {
    /* Professional Dark Theme Background */
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.98) 0%,
        rgba(15, 23, 42, 0.95) 50%,
        rgba(2, 6, 23, 0.92) 100%) !important;
    border: 1px solid rgba(88, 166, 255, 0.15) !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(12px) !important;
}

[data-theme="dark"] .room-info-cell:hover {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 1) 0%,
        rgba(30, 41, 59, 0.98) 50%,
        rgba(15, 23, 42, 0.95) 100%) !important;
    border-color: rgba(88, 166, 255, 0.25) !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(88, 166, 255, 0.08) !important;
    transform: translateZ(0) translateY(-1px) !important;
}

[data-theme="dark"] .availability-table-redesigned .room-name {
    color: #f8fafc;
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .availability-table-redesigned .room-name::before {
    background: linear-gradient(45deg, #58a6ff, #4fc3f7);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

[data-theme="dark"] .room-detail {
    background: none;
    border: none;
    color: #94a3b8;
}

[data-theme="dark"] .room-detail:hover {
    color: #cbd5e1;
}

/* Professional Dark Theme Icons */
[data-theme="dark"] .room-detail i {
    color: #6b7280;
    transition: color 0.15s ease;
}

[data-theme="dark"] .room-detail:hover i {
    color: #9ca3af;
}

[data-theme="dark"] .availability-cell-redesigned {
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid rgba(71, 85, 105, 0.8);
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

[data-theme="dark"] .availability-cell-redesigned:hover {
    border-color: #88a6ff;
    box-shadow:
        var(--shadow-lg),
        0 0 0 4px rgba(88, 166, 255, 0.15);
    transform: translateY(-3px) scale(1.02);
}

[data-theme="dark"] .availability-cell-redesigned.available {
    background: linear-gradient(135deg,
        var(--availability-available) 0%,
        var(--availability-available-secondary) 100%);
    border: 2px solid var(--availability-available-secondary);
    color: white;
    box-shadow:
        0 2px 8px rgba(132, 204, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .availability-cell-redesigned.available:hover {
    background: linear-gradient(135deg, var(--availability-available-secondary) 0%, #4d7c0f 100%);
    border-color: #4d7c0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .availability-cell-redesigned.unavailable {
    background: linear-gradient(135deg,
        #475569 0%,
        #334155 50%,
        #1e293b 100%);
    border: 2px solid #1e293b;
    color: #cbd5e1;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0.7;
}

[data-theme="dark"] .availability-cell-redesigned.unavailable:hover {
    /* Allow hover effects on unavailable cells before range selection */
    cursor: pointer;
    /* User can still select these dates to start a range */
}

/* ENHANCED DARK THEME SELECTION VISIBILITY - Modern Gradient */
[data-theme="dark"] .availability-cell-redesigned.in-range,
[data-theme="dark"] .availability-cell-redesigned.available.in-range {
    /* Comment #19: Sandy brown for selected range - flat design */
    background: #D2B48C !important; /* Sandy brown - use 'background' not 'background-color' to override gradient */
    background-image: none !important; /* Remove any gradient */
    border: 1px solid #C4A57B !important; /* Darker sandy brown border */
    color: #5a4a3a !important; /* Dark brown text for contrast */
    font-weight: 800 !important;
    /* FIXED: Remove transform to prevent overlapping during scroll */
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-selection-range) !important;
    margin: 0 !important; /* No gaps between cells */
}

[data-theme="dark"] .availability-cell-redesigned.check-in,
[data-theme="dark"] .availability-cell-redesigned.available.check-in {
    /* Comment #19: Sandy brown for check-in - flat design - MUST override available gradient */
    background: #D2B48C !important; /* Sandy brown - use 'background' not 'background-color' to override gradient */
    background-image: none !important; /* Remove any gradient */
    border: 2px solid #C4A57B !important; /* Darker sandy brown border */
    color: #5a4a3a !important; /* Dark brown text for contrast */
    font-weight: 900 !important;
    /* FIXED: Remove transform to prevent overlapping during scroll */
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-calendar-selection) !important;
    margin: 0 !important; /* No gaps between cells */
}

[data-theme="dark"] .availability-cell-redesigned.check-out,
[data-theme="dark"] .availability-cell-redesigned.available.check-out {
    /* Comment #19: Sandy brown for checkout - flat design */
    background-color: rgba(210, 180, 140, 0.8) !important; /* Lighter sandy brown - override available styles */
    border: 1px solid #C4A57B !important; /* Darker sandy brown border */
    color: #5a4a3a !important; /* Dark brown text for contrast */
    font-weight: 600 !important;
    margin: 0 !important; /* No gaps between cells */
    box-shadow: none !important; /* Flat design - no shadows */
    z-index: var(--z-calendar-selection) !important;
}

/* 🎯 SIMPLE CHECKOUT DATE TRANSPARENCY - LESS CONFUSING */

/* Only make checkout date numbers slightly more transparent to show it's just departure */
.availability-cell-redesigned.check-out .availability-count {
    opacity: 0.85 !important; /* Slightly transparent but still readable - consistent with selected range */
    transition: opacity 0.3s ease;
}

/* Enhanced text visibility in selected range */
[data-theme="dark"] .availability-cell-redesigned.in-range .availability-count,
[data-theme="dark"] .availability-cell-redesigned.check-in .availability-count,
[data-theme="dark"] .availability-cell-redesigned.check-out .availability-count {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown */
    font-weight: 900 !important;
    text-shadow: none !important; /* Flat design - no shadows */
    font-size: 1.6rem !important;
    /* Match the normal available size */
}

[data-theme="dark"] .availability-cell-redesigned.in-range .availability-status,
[data-theme="dark"] .availability-cell-redesigned.check-in .availability-status,
[data-theme="dark"] .availability-cell-redesigned.check-out .availability-status {
    color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
    font-weight: 700 !important;
    text-shadow: none !important; /* Flat design - no shadows */
}


[data-theme="dark"] .availability-cell-redesigned.in-range.unavailable {
    background: #475569 !important;
    border: 3px solid #334155 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    /* FIXED: Remove transform to prevent overlapping during scroll */
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.2) !important;
    z-index: var(--z-selection-range) !important;
    position: relative;
}

[data-theme="dark"] .availability-cell-redesigned.in-range.unavailable:hover {
    /* Remove hover effects on unavailable cells even when in selected range (dark theme) */
    cursor: not-allowed !important;
    transform: none !important;
    filter: none !important;
    /* Keep original in-range unavailable styling */
}

/* NEW: Dark theme styling for range-unavailable cells */
[data-theme="dark"] .availability-cell-redesigned.range-unavailable {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border: 2px solid #991b1b !important;
    color: #fef2f2 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4) !important;
    opacity: 0.9 !important;
}

[data-theme="dark"] .availability-cell-redesigned.range-unavailable:hover {
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.5) !important;
}

/* CRITICAL: Ensure no red hover effect on unavailable cells - highest specificity override */
.availability-table-redesigned .availability-cell-redesigned.unavailable:hover {
    filter: none !important;
    transform: none !important;
    cursor: pointer !important;
    /* User can still select unavailable dates before range is selected */
}

.availability-table-redesigned .availability-cell-redesigned.in-range.unavailable:hover {
    filter: none !important;
    transform: none !important;
    cursor: not-allowed !important;
    /* Show not-allowed cursor only for unavailable cells within selected range */
}

/* CRITICAL: Prevent ::before pseudo-element from being affected by hover brightness filter */
.availability-table-redesigned .availability-cell-redesigned.unavailable:hover::before,
.availability-table-redesigned .availability-cell-redesigned.in-range.unavailable:hover::before,
.availability-table-redesigned .availability-cell-redesigned.check-in.unavailable:hover::before {
    filter: none !important;
    /* Ensure pseudo-elements are not affected by parent hover filters */
}


[data-theme="dark"] .availability-cell-redesigned.check-in.unavailable {
    background: #475569 !important;
    border: 3px solid #334155 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    /* FIXED: Remove transform to prevent overlapping during scroll */
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3) !important;
    z-index: var(--z-calendar-selection) !important;
    margin: 2px;
}

[data-theme="dark"] .availability-actions-redesigned {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .selection-message {
    color: #cbd5e1;
}

[data-theme="dark"] .selection-details {
    color: #f8fafc;
}

[data-theme="dark"] .selection-summary {
    color: #f8fafc;
}

[data-theme="dark"] .availability-legend {
    background: rgba(96, 165, 250, 0.12);
    border-left-color: #60a5fa;
}

[data-theme="dark"] .availability-legend .legend-text {
    color: #cbd5e1;
}

[data-theme="dark"] .availability-legend .text-primary {
    color: #60a5fa;
}

[data-theme="dark"] .btn-clear {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

[data-theme="dark"] .btn-clear:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .btn-proceed:disabled {
    background: #475569;
    color: var(--text-muted);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --room-column-width: var(--room-column-width-mobile);
        --cell-size: var(--cell-size-mobile);
        --header-padding: var(--space-md);
    }

    .availability-header-redesigned {
        padding: var(--space-md) var(--space-lg);
        margin: 0 var(--space-sm);
        border-radius: var(--radius-lg);
    }

    .availability-title-section {
        margin-bottom: var(--space-md);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-lg);
        border-radius: var(--radius-md);
    }

    .availability-title {
        font-size: 1.25rem;
        gap: var(--space-sm);
    }

    .availability-subtitle {
        font-size: 0.75rem;
        margin-top: 0.125rem;
        line-height: 1;
    }

    .availability-navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.25rem;
        align-items: center;
        flex-wrap: wrap;
        padding: 0.25rem 0;
    }

    .view-selector {
        flex-shrink: 1;
        min-width: 0;
        padding: 2px;
    }

    .view-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
        gap: 0.25rem;
        min-height: 28px;
    }

    .view-btn i {
        font-size: 0.7rem;
    }

    /* Legend and Min Stay Group - Mobile Optimized */
    .legend-minstay-group {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .availability-legend-inline {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .legend-item-inline {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.6rem;
    }

    .legend-item-inline .legend-dot {
        width: 8px;
        height: 8px;
    }

    .legend-item-inline span {
        font-size: 0.6rem;
        white-space: nowrap;
    }

    .min-stay-indicator {
        font-size: 0.55rem;
        padding: 0.125rem 0.25rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .min-stay-indicator i {
        font-size: 0.6rem;
    }

    /* Date Navigation - Mobile Optimized */
    .date-navigation {
        gap: 0.125rem;
        flex-shrink: 0;
    }

    .nav-btn-group {
        padding: 1px;
        gap: 1px;
    }

    .nav-btn {
        height: 32px;
        width: 32px;
        font-size: 0.7rem;
    }

    .nav-btn i {
        font-size: 0.75rem;
    }

    .nav-btn-today {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        min-width: 60px;
        height: 32px;
    }

    .date-navigation {
        gap: 0.1875rem;
        flex: none;
    }

    .date-display {
        min-width: 80px;
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
        height: 24px;
    }

    .nav-btn {
        height: 24px;
        width: 24px;
        font-size: 0.625rem;
    }

    .nav-btn-today {
        padding: 0.125rem 0.375rem;
        font-size: 0.625rem;
        height: 24px;
        min-width: 44px;
    }

    .calendar-grid-redesigned {
        padding: var(--space-sm);
        margin: var(--space-sm);
    }

    /* Hide room details on mobile for compact view */
    .room-details {
        display: none !important;
    }

    .room-detail {
        display: none !important;
    }

    .calendar-table {
        border-spacing: var(--space-xs);
        margin: calc(-1 * var(--space-xs));
        min-width: 600px;
    }

    .room-header-cell {
        min-width: var(--room-column-width-mobile);
        max-width: var(--room-column-width-mobile);
        padding: var(--space-sm) var(--space-xs);
        font-size: 0.75rem;
        line-height: 1.2;
        height: 45px;
    }

    .date-header-cell {
        width: var(--cell-size-mobile) !important;
        min-width: var(--cell-size-mobile) !important;
        padding: var(--space-sm) var(--space-xs) !important;
        text-align: center !important;
        font-size: 0.75rem !important;
    }

    .date-number {
        font-size: var(--font-size-base);
    }

    .date-day-name {
        font-size: var(--font-size-xs);
    }

    .room-info-cell {
        padding: 1rem 0.75rem;
    }

    .availability-table-redesigned .room-name {
        font-size: var(--font-size-sm);
    }

    .room-detail {
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
        border-radius: 3px;
        gap: 0.2rem;
        line-height: 1;
    }

    /* Professional Mobile Room Info Cells */
    .room-info-cell {
        /* Compact Mobile Layout */
        padding: 6px 4px !important;
        gap: 2px !important;
        width: 75px !important;
        min-width: 75px !important;
        max-width: 75px !important;
        height: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;

        /* Professional Mobile Background */
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(59, 130, 246, 0.12) !important;
        border-radius: 0 !important; /* Square corners - no border-radius */
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(12px) !important;

        /* Sticky Positioning */
        position: sticky !important;
        left: 0 !important;
        z-index: var(--z-sticky-table-column) !important;

        /* Mobile Typography */
        font-size: 0.65rem !important;
        text-align: left !important;
        overflow: hidden !important;
    }

    [data-view="month"] .calendar-table th:first-child {
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        z-index: var(--z-sticky-table-column) !important;
    }

    /* Professional Dark Theme Mobile */
    [data-theme="dark"] .room-info-cell {
        background: rgba(15, 23, 42, 0.98) !important;
        border: 1px solid rgba(88, 166, 255, 0.15) !important;
        backdrop-filter: blur(12px) !important;
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        z-index: var(--z-sticky-table-column) !important;
    }

    [data-theme="dark"] .availability-table-redesigned .room-name {
        color: #f8fafc !important;
    }

    /* Mobile room header cells higher z-index */
    .room-header-cell {
        z-index: var(--z-sticky-table-column) !important;
    }

    .availability-table-redesigned .room-name {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        margin: 0 !important;
        padding: 0 0 0 8px !important;
        line-height: 1.2 !important;
        text-align: left !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow: hidden !important;
        display: block !important;
        max-height: 2.4em !important;
    }

    .availability-table-redesigned .room-name::before {
        width: 2px !important;
        height: 12px !important;
        left: 2px !important;
        border-radius: 1px !important;
    }

    /* Hide room details on mobile for ultra-clean layout */
    .room-details {
        display: none !important;
    }

    .room-detail {
        display: none !important;
    }

    /* ENHANCED MOBILE CELLS - ULTRA COMPACT FOR MAXIMUM DATE VISIBILITY */
    .availability-cell-redesigned {
        width: var(--cell-size-mobile) !important;
        height: var(--cell-size-mobile) !important;
        min-width: var(--cell-size-mobile) !important;
        max-width: var(--cell-size-mobile) !important;
        min-height: var(--cell-size-mobile) !important;
        max-height: var(--cell-size-mobile) !important;
        padding: var(--space-xs) !important;
        font-size: 0.75rem !important;
        border-radius: 0 !important; /* Square corners - no border-radius */
        box-sizing: border-box !important;
        display: table-cell !important;
        vertical-align: middle !important;
        text-align: center !important;
        z-index: 15 !important;
    }

    /* Ensure all availability states have consistent sizing */
    .availability-cell-redesigned.available,
    .availability-cell-redesigned.unavailable,
    .availability-cell-redesigned.limited,
    .availability-cell-redesigned.check-in,
    .availability-cell-redesigned.check-out,
    .availability-cell-redesigned.in-range {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }

    .availability-cell-redesigned.in-range .availability-count,
    .availability-cell-redesigned.check-in .availability-count,
    .availability-cell-redesigned.check-out .availability-count {
        color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
        font-weight: 900 !important;
        text-shadow: none !important; /* Flat design - no shadows */
        font-size: 1rem !important; /* Consistent readable size on mobile */
    }
    
    /* Mobile: Consistent font sizes for split display in selected range */
    .availability-cell-redesigned.in-range .availability-count-min,
    .availability-cell-redesigned.check-in .availability-count-min,
    .availability-cell-redesigned.check-out .availability-count-min,
    .availability-cell-redesigned.in-range .availability-count-separator,
    .availability-cell-redesigned.check-in .availability-count-separator,
    .availability-cell-redesigned.check-out .availability-count-separator {
        color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
        font-size: 1rem !important; /* Consistent readable size on mobile */
        text-shadow: none !important; /* Flat design - no shadows */
    }
    
    .availability-cell-redesigned.in-range .availability-count-actual,
    .availability-cell-redesigned.check-in .availability-count-actual,
    .availability-cell-redesigned.check-out .availability-count-actual {
        color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
        font-size: 0.85rem !important; /* Slightly smaller for secondary text, but still readable */
        opacity: 0.8 !important; /* Slightly lighter for secondary text */
        text-shadow: none !important; /* Flat design - no shadows */
    }
    
    /* Mobile: Consistent font size for status text in selected range */
    .availability-cell-redesigned.in-range .availability-status,
    .availability-cell-redesigned.check-in .availability-status,
    .availability-cell-redesigned.check-out .availability-status {
        color: #5a4a3a !important; /* Dark brown for contrast on sandy brown - consistent */
        font-size: 0.7rem !important; /* Consistent readable size on mobile */
        text-shadow: none !important; /* Flat design - no shadows */
    }
    
    /* Mobile: Availability icons - 50% of cell size (60px cell = 30px icon) */
    .availability-icon {
        font-size: 2rem !important; /* Approximately 50% of 60px mobile cell (30px) */
    }
    
    .availability-icon i {
        font-size: inherit;
        width: 1em;
        height: 1em;
    }
    
    .availability-cell-redesigned.available .availability-icon {
        color: #16a34a !important; /* Brighter, more noticeable green */
        filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.3));
    }
    
    .availability-cell-redesigned.unavailable .availability-icon,
    .availability-cell-redesigned.limited .availability-icon {
        color: #dc2626 !important; /* Bright red for better visibility */
        filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
    }

    .availability-cell-redesigned.room-type {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }

    .availability-count {
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        line-height: 1.0 !important;
        text-align: center !important;
        margin-bottom: 0 !important;
    }

    .availability-status {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        margin-top: 0 !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    /* Enhanced mobile table spacing and scrolling - PRESERVE TABLE LAYOUT */
    /* FIXED Comment #14: Ensure all 7 days visible in landscape mobile view */
    .calendar-table {
        display: table !important;
        width: 100% !important;
        min-width: 400px !important;
        border-spacing: 2px !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
    }
    
    /* FIXED Comment #14: Landscape mobile view - ensure all days visible, no cutoff */
    @media (max-width: 768px) and (orientation: landscape) {
        /* CRITICAL: iPhone 14 Pro Max landscape: 932x430 - maximize available width */
        /* Override ALL possible padding/margin sources - match portrait mode full width */
        
        /* Bootstrap container override */
        #availabilityTableSection.container,
        #availabilityTableSection.container-fluid {
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            overflow-x: auto !important;
            max-width: 100vw !important;
            width: 100vw !important;
        }
        
        /* Main table container - remove ALL spacing like portrait mode */
        .availability-table-redesigned {
            overflow-x: auto !important;
            overflow-y: visible !important;
            margin: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            max-width: 100% !important;
            width: 100% !important;
            border-radius: 0 !important;
        }
        
        /* Header section - remove left/right margins like portrait mode */
        .availability-header-redesigned {
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: var(--space-sm) !important;
            padding-right: var(--space-sm) !important;
            border-radius: 0 !important;
        }
        
        /* Title section - remove left/right padding */
        .availability-title-section {
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: var(--space-sm) !important;
            padding-right: var(--space-sm) !important;
        }
        
        /* Calendar grid - override base margin: var(--space-md) */
        .calendar-grid-redesigned {
            padding: 0 !important;
            margin: 0 !important;
            overflow-x: auto !important;
            overflow-y: visible !important;
            -webkit-overflow-scrolling: touch !important;
            max-width: 100% !important;
            width: 100% !important;
            border-radius: 0 !important;
        }
        
        /* Table wrapper */
        .availability-table-redesigned .table-wrapper {
            overflow-x: auto !important;
            overflow-y: visible !important;
            -webkit-overflow-scrolling: touch !important;
            max-width: 100% !important;
            width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
        }
        
        /* CRITICAL: Table must fit exactly - override base min-width: 800px */
        .calendar-table {
            min-width: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            table-layout: fixed !important;
            border-spacing: 0 !important;
            border-collapse: collapse !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        /* Ensure borders are included in width calculation */
        .calendar-table td,
        .calendar-table th {
            box-sizing: border-box !important;
        }
        
        /* CRITICAL: Minimize room column to absolute minimum */
        /* iPhone 14 Pro Max: 932px viewport, need room column + 7 date cells */
        .room-header-cell,
        .room-info-cell {
            width: 40px !important;
            min-width: 40px !important;
            max-width: 40px !important;
            padding: 1px !important;
            font-size: 0.5rem !important;
        }
        
        /* Calculate cell width: (100% - room column) / 7 */
        /* Room column: 40px, no border-spacing (collapsed borders) */
        /* Use 100% relative to table container */
        .date-header-cell {
            width: calc((100% - 40px) / 7) !important;
            min-width: calc((100% - 40px) / 7) !important;
            max-width: calc((100% - 40px) / 7) !important;
            padding: 1px 0 !important;
            font-size: 0.5rem !important;
        }
        
        .availability-cell-redesigned {
            width: calc((100% - 40px) / 7) !important;
            min-width: calc((100% - 40px) / 7) !important;
            max-width: calc((100% - 40px) / 7) !important;
            padding: 1px 0 !important;
        }
        
        /* Remove all container padding */
        .availability-table-redesigned .container-fluid,
        .availability-table-redesigned .table-container {
            padding-right: 0 !important;
            padding-left: 0 !important;
            margin-right: 0 !important;
            margin-left: 0 !important;
            overflow-x: auto !important;
            max-width: 100% !important;
            width: 100% !important;
        }
        
        /* Remove spacing from any wrapper elements */
        .real-calendar-content {
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        
        /* Actions footer - minimal padding */
        .availability-actions-redesigned {
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: var(--space-sm) !important;
            padding-right: var(--space-sm) !important;
        }
    }

    /* CRITICAL: Ensure all table elements maintain proper display */
    .room-row {
        display: table-row !important;
    }

    .room-row td,
    .availability-cell-redesigned {
        display: table-cell !important;
        vertical-align: middle !important;
    }

    /* Mobile table container for horizontal scroll */
    .availability-container-redesigned {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
    }

    /* Mobile table headers - PRESERVE TABLE CELL DISPLAY */
    .calendar-header-row {
        display: table-row !important;
    }

    .date-header-cell {
        display: table-cell !important;
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .room-header-cell {
        display: table-cell !important;
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        text-align: center !important;
        vertical-align: middle !important;
        font-size: 0.75rem !important;
    }

    /* Room Types header should also be sticky */
    .availability-table-redesigned th.room-types-header {
        position: sticky !important;
        left: 0 !important;
        z-index: 11 !important;
        background: white !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        border-right: 2px solid #e2e8f0 !important;
    }

    [data-theme="dark"] .availability-table-redesigned th.room-types-header {
        background: #1a202c !important;
        border-right: 2px solid #4a5568 !important;
    }

    [data-theme="dark"] .availability-cell-redesigned.in-range .availability-count,
    [data-theme="dark"] .availability-cell-redesigned.check-in .availability-count,
    [data-theme="dark"] .availability-cell-redesigned.check-out .availability-count {
        color: #81d4fa !important;
        font-weight: 900 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
        font-size: 0.8rem !important;
        /* Match the normal available size */
    }

    /* Enhanced mobile container spacing */
    .availability-container-redesigned {
        padding: 1rem !important;
        margin: 0.5rem !important;
        border-radius: 16px !important;
    }

    .availability-actions-redesigned {
        padding: 1.5rem 1rem !important;
        margin-top: 1rem !important;
    }

    .actions-content {
        flex-direction: column;
        gap: 1rem;
    }

    .action-buttons-redesigned {
        width: 100%;
        flex-direction: column;
    }

    .btn-clear,
    .btn-proceed {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Premium Very Small Mobile Design */
    .availability-header-redesigned {
        padding: 0.5rem 0.75rem;
    }

    .availability-title-section {
        margin-bottom: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .availability-title {
        font-size: 1rem;
        gap: 0.5rem;
    }

    .availability-subtitle {
        font-size: 0.8rem;
    }

    .availability-navigation {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .view-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .date-display {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        height: 40px;
    }

    .nav-btn {
        height: 40px;
        width: 40px;
        font-size: 0.8rem;
    }

    .nav-btn-today {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        height: 40px;
        min-width: 80px;
    }

    .legend-items {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .legend-item-redesigned {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .room-header-cell {
        min-width: 160px;
        max-width: 160px;
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
        text-align: center;
    }

    .date-header-cell {
        width: 28px !important;
        min-width: 28px !important;
        padding: 0.125rem !important;
        font-size: 0.5rem !important;
        text-align: center !important;
    }

    /* Very small mobile cells - ULTRA COMPACT */
    .availability-cell-redesigned {
        width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        font-size: 0.6rem !important;
        padding: 0.125rem !important;
        display: table-cell !important;
        vertical-align: middle !important;
        text-align: center !important;
        z-index: 10 !important;
    }

    .availability-count {
        font-size: 0.7rem !important;
    }

    .availability-status {
        font-size: 0.65rem !important;
    }

    .room-info-cell {
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        padding: 0.25rem 0.1rem !important;
        z-index: var(--z-sticky-table-column) !important;
        min-height: 32px !important;
        height: 32px !important;
        max-height: 32px !important;
        font-size: 0.55rem !important;
    }

    .availability-table-redesigned .room-name {
        font-size: 0.65rem !important;
        text-align: center !important;
        white-space: normal !important;
        overflow: hidden !important;
        line-height: 1.1 !important;
        width: 100% !important;
        display: block !important;
        word-break: break-word !important;
        hyphens: auto !important;
        max-height: 2.2em !important;
        font-weight: var(--font-weight-bold) !important;
    }
}

/* Large Desktop Screens - Better Spacing */
@media (min-width: 1200px) {
    .availability-header-redesigned {
        padding: 0.75rem 1.5rem;
    }

    .availability-title-section {
        margin-bottom: 0.375rem;
    }

    .availability-title {
        font-size: var(--font-size-xl);
        gap: 0.5rem;
    }

    .availability-subtitle {
        font-size: var(--font-size-sm);
    }

    .availability-navigation {
        gap: 1rem;
    }

    .view-btn {
        padding: 0.5rem 1rem;
        font-size: var(--font-size-sm);
        gap: 0.5rem;
    }

    .date-display {
        min-width: 140px;
        font-size: var(--font-size-sm);
        padding: 0.375rem 0.75rem;
    }

    .nav-btn {
        height: 32px;
        width: 32px;
        font-size: var(--font-size-sm);
    }

    .nav-btn-today {
        padding: 0.375rem 0.75rem;
        font-size: var(--font-size-sm);
        height: 32px;
    }
}

/* Enhanced Border Styling for Calendar Grid */
.calendar-grid-redesigned {
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 4px 16px rgba(59, 130, 246, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.calendar-grid-redesigned:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 6px 20px rgba(59, 130, 246, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Month view specific border enhancement */
[data-view="month"] .calendar-grid-redesigned {
    border: 2px solid rgba(139, 92, 246, 0.25);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 4px 16px rgba(139, 92, 246, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-view="month"] .calendar-grid-redesigned:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 6px 20px rgba(139, 92, 246, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Enhanced Scrollbar Styling */
.calendar-grid-redesigned::-webkit-scrollbar {
    height: 14px;
    background: linear-gradient(180deg,
        rgba(241, 245, 249, 0.8) 0%,
        rgba(226, 232, 240, 0.9) 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.calendar-grid-redesigned::-webkit-scrollbar-track {
    background: linear-gradient(180deg,
        rgba(241, 245, 249, 0.6) 0%,
        rgba(226, 232, 240, 0.8) 100%);
    border-radius: 8px;
    margin: 0 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-grid-redesigned::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.7) 0%,
        rgba(99, 102, 241, 0.8) 50%,
        rgba(139, 92, 246, 0.7) 100%);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 2px 8px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all var(--transition-fast);
}

.calendar-grid-redesigned::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.9) 0%,
        rgba(99, 102, 241, 1) 50%,
        rgba(139, 92, 246, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 3px 12px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: scaleY(1.1);
}

.calendar-grid-redesigned::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 1) 0%,
        rgba(79, 70, 229, 1) 50%,
        rgba(109, 40, 217, 1) 100%);
    box-shadow:
        0 1px 4px rgba(59, 130, 246, 0.5) inset,
        0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Scrollbar buttons (arrows) */
.calendar-grid-redesigned::-webkit-scrollbar-button {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(99, 102, 241, 0.2) 100%);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.calendar-grid-redesigned::-webkit-scrollbar-button:hover {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.3) 0%,
        rgba(99, 102, 241, 0.4) 100%);
}

.calendar-grid-redesigned::-webkit-scrollbar-button:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M7.5 9L4.5 6l3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.calendar-grid-redesigned::-webkit-scrollbar-button:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M4.5 3L7.5 6l-3 3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Firefox Scrollbar */
.calendar-grid-redesigned {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.7) rgba(241, 245, 249, 0.8);
}

/* Dark Theme Scrollbar */
[data-theme="dark"] .calendar-grid-redesigned::-webkit-scrollbar {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(51, 65, 85, 0.9) 100%);
}

[data-theme="dark"] .calendar-grid-redesigned::-webkit-scrollbar-track {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .calendar-grid-redesigned::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg,
        rgba(88, 166, 255, 0.7) 0%,
        rgba(99, 102, 241, 0.8) 50%,
        rgba(139, 92, 246, 0.7) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .calendar-grid-redesigned::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg,
        rgba(88, 166, 255, 0.9) 0%,
        rgba(99, 102, 241, 1) 50%,
        rgba(139, 92, 246, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .calendar-grid-redesigned {
    scrollbar-color: rgba(88, 166, 255, 0.7) rgba(30, 41, 59, 0.8);
}

/* Dark Theme Border */
[data-theme="dark"] .calendar-grid-redesigned {
    border-color: rgba(88, 166, 255, 0.25);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 4px 16px rgba(88, 166, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .calendar-grid-redesigned:hover {
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 6px 20px rgba(88, 166, 255, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.4);
}