/*!
 * ==========================================================
 * BA.UI Framework
 * BADatePicker Styles
 * Version : 1.0.0
 * ==========================================================
 */

/* Container */
.ba-datepicker {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Calendar Popup */
.ba-datepicker__calendar {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 99999;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 16px;
    min-width: 320px;
    display: none;
    animation: ba-datepicker-slide-down 0.2s ease;
}

.ba-datepicker__calendar.is-open {
    display: block;
}

@keyframes ba-datepicker-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dual Calendar Layout */
.ba-datepicker__double {
    display: flex;
    gap: 16px;
}

.ba-datepicker__month-container {
    flex: 1;
    min-width: 280px;
}

.ba-datepicker__nav-spacer {
    display: inline-block;
    width: 32px;
    height: 32px;
}

/* Calendar Header */
.ba-datepicker__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ba-datepicker__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1F2937;
}

.ba-datepicker__month {
    font-size: 15px;
}

.ba-datepicker__year {
    font-size: 15px;
    color: #6B7280;
}

/* Navigation Buttons */
.ba-datepicker__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6B7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ba-datepicker__nav:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.ba-datepicker__nav:active {
    background: #E5E7EB;
}

/* Calendar Body */
.ba-datepicker__body {
    width: 100%;
}

/* Days Header */
.ba-datepicker__days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.ba-datepicker__day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    padding: 8px 0;
    text-transform: uppercase;
}

/* Days Grid */
.ba-datepicker__days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Day Cell */
.ba-datepicker__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.ba-datepicker__day:hover {
    background: #F3F4F6;
}

/* Other Month Days */
.ba-datepicker__day.is-other-month {
    color: #D1D5DB;
}

/* Today */
.ba-datepicker__day.is-today {
    font-weight: 600;
    color: #3B82F6;
}

.ba-datepicker__day.is-today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #3B82F6;
    border-radius: 50%;
}

/* Selected Day */
.ba-datepicker__day.is-selected {
    background: #3B82F6;
    color: #ffffff;
    font-weight: 600;
}

.ba-datepicker__day.is-selected:hover {
    background: #2563EB;
}

.ba-datepicker__day.is-selected.is-today::after {
    background: #ffffff;
}

/* Range Mode */
.ba-datepicker__day.is-in-range {
    background: #EFF6FF;
    color: #1E40AF;
}

.ba-datepicker__day.is-range-start {
    background: #3B82F6;
    color: #ffffff;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.ba-datepicker__day.is-range-end {
    background: #3B82F6;
    color: #ffffff;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.ba-datepicker__day.is-range-start.is-range-end {
    border-radius: 6px;
}

/* Disabled Day */
.ba-datepicker__day.is-disabled,
.ba-datepicker__day:disabled {
    color: #E5E7EB;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== HOLIDAYS ==================== */

/* Holiday day cell styling */
.ba-datepicker__day.is-holiday {
    position: relative;
}

.ba-datepicker__day.is-holiday::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

/* Official holiday (Resmi Tatil) - red dot */
.ba-datepicker__day.is-official-holiday {
    color: #DC2626;
}

.ba-datepicker__day.is-official-holiday::after {
    background-color: #DC2626;
}

.ba-datepicker__day.is-official-holiday:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.ba-datepicker__day.is-official-holiday.is-selected {
    background: #DC2626;
    color: #ffffff;
}

.ba-datepicker__day.is-official-holiday.is-selected::after {
    background-color: #ffffff;
}

/* Special day (Özel Gün, not official) - gray dot */
.ba-datepicker__day.is-special-day {
    color: #6B7280;
}

.ba-datepicker__day.is-special-day::after {
    background-color: #6B7280;
}

/* Holiday list container */
.ba-datepicker__holidays {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
    max-height: 120px;
    overflow-y: auto;
}

/* Individual holiday item */
.ba-datepicker__holiday-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #F9FAFB;
    font-size: 12px;
}

.ba-datepicker__holiday-item.is-official {
    background: #FEF2F2;
}

.ba-datepicker__holiday-item.is-official .ba-datepicker__holiday-icon {
    color: #DC2626;
}

.ba-datepicker__holiday-item.is-official .ba-datepicker__holiday-date {
    color: #DC2626;
}

.ba-datepicker__holiday-item.is-special {
    background: #F3F4F6;
}

.ba-datepicker__holiday-item.is-special .ba-datepicker__holiday-icon {
    color: #6B7280;
}

.ba-datepicker__holiday-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.ba-datepicker__holiday-date {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.ba-datepicker__holiday-name {
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Shortcuts */
.ba-datepicker__shortcuts {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
}

.ba-datepicker__shortcut {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ba-datepicker__shortcut:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.ba-datepicker__shortcut:active {
    background: #F3F4F6;
}

/* Calendar Icon (optional) */
.ba-datepicker__icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
}

/* Input States */
.ba-datepicker input {
    cursor: pointer;
}

.ba-datepicker input:focus {
    outline: none;
}

/* Compact Variant */
.ba-datepicker--compact .ba-datepicker__calendar {
    padding: 12px;
    min-width: 280px;
}

.ba-datepicker--compact .ba-datepicker__day {
    font-size: 13px;
}

.ba-datepicker--compact .ba-datepicker__day-name {
    font-size: 11px;
    padding: 6px 0;
}

/* Inline Variant (always visible) */
.ba-datepicker--inline .ba-datepicker__calendar {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
}

/* Range Variant */
.ba-datepicker--range {
    /* Styles specific to range mode */
}

/* Responsive - Mobile Bottom Sheet */
@media (max-width: 768px) {
    /* Mobile bottom sheet for datepicker - hidden by default */
    .ba-datepicker__calendar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        min-width: 100%;
        width: 100%;
        max-width: none;
        transform: none;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding: 0;
        border: none;
        /* Keep hidden by default */
        display: none;
    }

    /* Only show when open - use flex for layout */
    .ba-datepicker__calendar.is-open {
        display: flex;
        flex-direction: column;
        animation: ba-datepicker-slide-up 0.25s ease-out;
    }

    @keyframes ba-datepicker-slide-up {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    /* Pseudo overlay disabled - using real overlay element */
    .ba-datepicker.is-open::before {
        display: none;
    }

    @keyframes ba-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Handle bar at top */
    .ba-datepicker__calendar::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #D1D5DB;
        border-radius: 2px;
        margin: 12px auto;
        flex-shrink: 0;
    }

    /* Calendar header */
    .ba-datepicker__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 16px 16px;
        border-bottom: 1px solid #E5E7EB;
        flex-shrink: 0;
    }

    .ba-datepicker__title {
        font-size: 17px;
        font-weight: 600;
        color: #1F2937;
    }

    .ba-datepicker__close {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: #F3F4F6;
        border-radius: 50%;
        cursor: pointer;
        color: #6B7280;
    }

    .ba-datepicker__close:hover {
        background: #E5E7EB;
        color: #1F2937;
    }

    /* Month navigation */
    .ba-datepicker__nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
    }

    .ba-datepicker__nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .ba-datepicker__nav-title {
        font-size: 16px;
        font-weight: 600;
    }

    /* Calendar body */
    .ba-datepicker__body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
    }

    /* Week days header */
    .ba-datepicker__weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        padding: 8px 0;
        border-bottom: 1px solid #F3F4F6;
        position: sticky;
        top: 0;
        background: #ffffff;
    }

    .ba-datepicker__weekday {
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        color: #6B7280;
        padding: 8px 0;
    }

    /* Days grid */
    .ba-datepicker__days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
        padding: 8px 0;
    }

    .ba-datepicker__day {
        width: 44px;
        height: 44px;
        margin: 0 auto;
        font-size: 15px;
        border-radius: 50%;
    }

    .ba-datepicker__day.is-today {
        font-weight: 700;
    }

    .ba-datepicker__day.is-selected {
        background: #3B82F6;
        color: #ffffff;
    }

    /* Shortcuts section */
    .ba-datepicker__shortcuts {
        display: flex;
        gap: 8px;
        padding: 12px 16px;
        border-top: 1px solid #E5E7EB;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
    }

    .ba-datepicker__shortcut {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
    }

    /* Footer with confirm button */
    .ba-datepicker__footer {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #E5E7EB;
        background: #ffffff;
        flex-shrink: 0;
    }

    .ba-datepicker__confirm {
        width: 100%;
        height: 52px;
        font-size: 16px;
        font-weight: 600;
        background: #3B82F6;
        color: #ffffff;
        border: none;
        border-radius: 12px;
        cursor: pointer;
    }

    .ba-datepicker__confirm:hover {
        background: #2563EB;
    }

    /* Range selection display */
    .ba-datepicker__range-display {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 12px 16px;
        background: #F9FAFB;
        margin: 0 16px 12px;
        border-radius: 12px;
    }

    .ba-datepicker__range-date {
        text-align: center;
    }

    .ba-datepicker__range-label {
        font-size: 11px;
        color: #6B7280;
        margin-bottom: 2px;
    }

    .ba-datepicker__range-value {
        font-size: 15px;
        font-weight: 600;
        color: #1F2937;
    }

    .ba-datepicker__range-arrow {
        color: #9CA3AF;
    }

    /* Mobile holidays list */
    .ba-datepicker__holidays {
        margin: 0 16px 12px;
        padding: 12px;
        border-top: none;
        background: #F9FAFB;
        border-radius: 12px;
        max-height: 100px;
    }

    .ba-datepicker__holiday-item {
        background: transparent;
        padding: 4px 0;
    }

    .ba-datepicker__holiday-item.is-official {
        background: transparent;
    }
}

/* RTL Support */
[dir="rtl"] .ba-datepicker__calendar {
    left: auto;
    right: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .ba-datepicker__calendar {
        border: 2px solid currentColor;
    }

    .ba-datepicker__day.is-selected {
        outline: 2px solid currentColor;
        outline-offset: -2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ba-datepicker__calendar {
        animation: none;
    }

    .ba-datepicker__day,
    .ba-datepicker__nav,
    .ba-datepicker__shortcut {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .ba-datepicker__calendar {
        display: none !important;
    }
}

/* ==========================================================
 * MOBILE FULL-SCREEN MODAL STYLES
 * ========================================================== */

/* Modal Overlay */
.ba-datepicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ba-datepicker-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Body scroll lock */
body.ba-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ============================================
   Full Height Datepicker (Mobile Modal)
   Activated by .ba-fullheight-datepicker class
   Only active on mobile devices (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Full height wrapper must also be fixed */
    .ba-fullheight-datepicker .ba-datepicker.is-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 10000 !important;
    }

    /* Full height calendar modal - when inside wrapper */
    .ba-fullheight-datepicker .ba-datepicker__calendar.is-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        border-radius: 0 !important;
        z-index: 10001 !important;
        display: flex !important;
        flex-direction: column !important;
        animation: ba-datepicker-slide-up 0.3s ease;
        overflow: hidden !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Full height calendar modal - when moved to body */
    body > .ba-datepicker__calendar.is-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        min-width: auto !important;
        min-height: auto !important;
        border-radius: 0 !important;
        z-index: 10001 !important;
        display: flex !important;
        flex-direction: column !important;
        animation: ba-datepicker-slide-up 0.3s ease;
        overflow: hidden !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    @keyframes ba-datepicker-slide-up {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Full height header - Dark theme */
    .ba-fullheight-datepicker .ba-datepicker__fullheight-header,
    body > .ba-datepicker__calendar .ba-datepicker__fullheight-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: #343a43;
        flex-shrink: 0;
    }

    .ba-fullheight-datepicker .ba-datepicker__fullheight-back,
    body > .ba-datepicker__calendar .ba-datepicker__fullheight-back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: #ffffff;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .ba-fullheight-datepicker .ba-datepicker__fullheight-back:hover,
    body > .ba-datepicker__calendar .ba-datepicker__fullheight-back:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .ba-fullheight-datepicker .ba-datepicker__fullheight-back svg,
    body > .ba-datepicker__calendar .ba-datepicker__fullheight-back svg {
        width: 24px;
        height: 24px;
    }

    .ba-fullheight-datepicker .ba-datepicker__fullheight-title,
    body > .ba-datepicker__calendar .ba-datepicker__fullheight-title {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        flex: 1;
        text-align: left;
        margin-left: 8px;
    }

    .ba-fullheight-datepicker .ba-datepicker__fullheight-confirm,
    body > .ba-datepicker__calendar .ba-datepicker__fullheight-confirm {
        padding: 8px 20px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 6px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .ba-fullheight-datepicker .ba-datepicker__fullheight-confirm:hover,
    body > .ba-datepicker__calendar .ba-datepicker__fullheight-confirm:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Scrollable calendar body - continuous months */
    .ba-fullheight-datepicker .ba-datepicker__fullheight-body,
    body > .ba-datepicker__calendar .ba-datepicker__fullheight-body {
        flex: 1;
        overflow-y: auto;
        background: #ffffff;
        -webkit-overflow-scrolling: touch;
    }

    /* Month section in continuous scroll */
    .ba-fullheight-datepicker .ba-datepicker__scroll-month,
    body > .ba-datepicker__calendar .ba-datepicker__scroll-month {
        padding: 16px;
        border-bottom: 1px solid #E5E7EB;
    }

    .ba-fullheight-datepicker .ba-datepicker__scroll-month:last-child,
    body > .ba-datepicker__calendar .ba-datepicker__scroll-month:last-child {
        border-bottom: none;
    }

    /* Month title centered */
    .ba-fullheight-datepicker .ba-datepicker__scroll-month-title,
    body > .ba-datepicker__calendar .ba-datepicker__scroll-month-title {
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        color: #1F2937;
        margin-bottom: 16px;
        padding: 8px 0;
    }

    /* Weekday headers */
    .ba-fullheight-datepicker .ba-datepicker__weekdays,
    body > .ba-datepicker__calendar .ba-datepicker__weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        margin-bottom: 8px;
    }

    .ba-fullheight-datepicker .ba-datepicker__weekday,
    body > .ba-datepicker__calendar .ba-datepicker__weekday {
        font-size: 13px;
        font-weight: 500;
        color: #6B7280;
        padding: 8px 0;
    }

    /* Days grid */
    .ba-fullheight-datepicker .ba-datepicker__days-grid,
    body > .ba-datepicker__calendar .ba-datepicker__days-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }

    .ba-fullheight-datepicker .ba-datepicker__day,
    body > .ba-datepicker__calendar .ba-datepicker__day {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 1;
        min-height: 44px;
        font-size: 15px;
        font-weight: 400;
        color: #1F2937;
        border: none;
        background: transparent;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .ba-fullheight-datepicker .ba-datepicker__day:hover:not(.is-disabled):not(.is-selected),
    body > .ba-datepicker__calendar .ba-datepicker__day:hover:not(.is-disabled):not(.is-selected) {
        background: #F3F4F6;
    }

    .ba-fullheight-datepicker .ba-datepicker__day.is-today,
    body > .ba-datepicker__calendar .ba-datepicker__day.is-today {
        font-weight: 600;
        color: #E5531A;
    }

    .ba-fullheight-datepicker .ba-datepicker__day.is-selected,
    body > .ba-datepicker__calendar .ba-datepicker__day.is-selected {
        background: #343a43;
        color: #ffffff;
        font-weight: 600;
    }

    .ba-fullheight-datepicker .ba-datepicker__day.is-disabled,
    body > .ba-datepicker__calendar .ba-datepicker__day.is-disabled {
        color: #D1D5DB;
        cursor: not-allowed;
    }

    .ba-fullheight-datepicker .ba-datepicker__day.is-holiday,
    body > .ba-datepicker__calendar .ba-datepicker__day.is-holiday {
        color: #059669;
        text-decoration: underline;
    }

    /* Holiday info at month bottom */
    .ba-fullheight-datepicker .ba-datepicker__holiday-info,
    body > .ba-datepicker__calendar .ba-datepicker__holiday-info {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 0 0;
        margin-top: 12px;
        border-top: 1px solid #E5E7EB;
        font-size: 13px;
        color: #6B7280;
    }

    .ba-fullheight-datepicker .ba-datepicker__holiday-info svg,
    body > .ba-datepicker__calendar .ba-datepicker__holiday-info svg {
        width: 16px;
        height: 16px;
        color: #9CA3AF;
    }

    .ba-fullheight-datepicker .ba-datepicker__holiday-date,
    body > .ba-datepicker__calendar .ba-datepicker__holiday-date {
        color: #059669;
        font-weight: 500;
    }

    .ba-fullheight-datepicker .ba-datepicker__holiday-name,
    body > .ba-datepicker__calendar .ba-datepicker__holiday-name {
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    /* Hide standard navigation in fullheight mode */
    .ba-fullheight-datepicker .ba-datepicker__header,
    .ba-fullheight-datepicker .ba-datepicker__nav,
    .ba-fullheight-datepicker .ba-datepicker__shortcuts,
    body > .ba-datepicker__calendar .ba-datepicker__header,
    body > .ba-datepicker__calendar .ba-datepicker__nav,
    body > .ba-datepicker__calendar .ba-datepicker__shortcuts {
        display: none !important;
    }

    /* Show fullheight elements when open */
    .ba-fullheight-datepicker .ba-datepicker__calendar.is-open .ba-datepicker__fullheight-header,
    body > .ba-datepicker__calendar.is-open .ba-datepicker__fullheight-header {
        display: flex;
    }

    .ba-fullheight-datepicker .ba-datepicker__calendar.is-open .ba-datepicker__fullheight-body,
    body > .ba-datepicker__calendar.is-open .ba-datepicker__fullheight-body {
        display: block;
    }

    /* Hide standard calendar body in fullheight mode */
    .ba-fullheight-datepicker .ba-datepicker__calendar.is-open .ba-datepicker__body,
    .ba-fullheight-datepicker .ba-datepicker__calendar.is-open .ba-datepicker__double,
    body > .ba-datepicker__calendar.is-open .ba-datepicker__body,
    body > .ba-datepicker__calendar.is-open .ba-datepicker__double {
        display: none;
    }
}

/* Hide fullheight elements on desktop (outside media query) */
.ba-datepicker__fullheight-header {
    display: none;
}

.ba-datepicker__fullheight-body {
    display: none;
}


/* ============================================
   Legacy Mobile Calendar (is-mobile class)
   ============================================ */

/* Mobile Calendar - Full Screen */
.ba-datepicker__calendar.is-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: auto;
    border-radius: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: ba-datepicker-slide-up 0.3s ease;
    overflow-y: auto;
    padding: 0;
}

/* Mobile Header */
.ba-datepicker__mobile-header {
    display: none;
}

.ba-datepicker__calendar.is-mobile .ba-datepicker__mobile-header {
    display: none;
}

.ba-datepicker__mobile-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ba-datepicker__mobile-back:hover {
    background: #F3F4F6;
}

.ba-datepicker__mobile-back:active {
    background: #E5E7EB;
}

.ba-datepicker__mobile-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    flex: 1;
    text-align: center;
}

.ba-datepicker__mobile-spacer {
    width: 40px;
    height: 40px;
}

/* Mobile Calendar Body Adjustments */
.ba-datepicker__calendar.is-mobile .ba-datepicker__body {
    flex: 1;
    padding: 16px;
}

.ba-datepicker__calendar.is-mobile .ba-datepicker__header {
    padding: 16px;
    margin-bottom: 0;
}

.ba-datepicker__calendar.is-mobile .ba-datepicker__days-grid {
    gap: 8px;
}

.ba-datepicker__calendar.is-mobile .ba-datepicker__day {
    width: 44px;
    height: 44px;
    font-size: 15px;
}

.ba-datepicker__calendar.is-mobile .ba-datepicker__nav {
    width: 44px;
    height: 44px;
}

.ba-datepicker__calendar.is-mobile .ba-datepicker__shortcuts {
    padding: 16px;
    border-top: 1px solid #E5E7EB;
    flex-wrap: wrap;
    gap: 8px;
}

.ba-datepicker__calendar.is-mobile .ba-datepicker__shortcut {
    padding: 10px 16px;
    font-size: 14px;
}

/* Double calendar on mobile - stack vertically */
.ba-datepicker__calendar.is-mobile .ba-datepicker__double {
    flex-direction: column;
    gap: 24px;
    padding: 16px;
}

.ba-datepicker__calendar.is-mobile .ba-datepicker__month-container {
    min-width: auto;
}

/* Holiday list on mobile */
.ba-datepicker__calendar.is-mobile .ba-datepicker__holiday-list {
    margin: 0;
    padding: 16px;
    border-top: 1px solid #E5E7EB;
}
