/* Custom Calendar Styles */
/* Updated day styles to handle empty/disabled states */
.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    position: relative;
    user-select: none;
}

.day.empty {
    cursor: default;
    pointer-events: none;
}

.day:hover:not(.disabled):not(.selected):not(.in-range):not(.empty) {
    background-color: #f0f0f0;
}

.day.disabled {
    color: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
}

.day.other-month {
    color: #999;
}

.day.selected {
    background: var(--gradient-black-to-gray);
    color: white;
    font-weight: 600;
}

.day.in-range {
    background-color: #f0f0f0;
    color: var(--bs-body-color);
    border-radius: 10px;
}

.day.range-start {
    border-radius: 10px;
}

.day.range-end {
    border-radius: 10px;
}

.day.range-start.range-end {
    border-radius: 10px;
}

/* Add styling for today's date */
.day.today {
    font-weight: 700;
    color: var(--bs-primary);
    position: relative;
}

.day.today::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--bs-primary);
    border-radius: 10px;
}

.day.today.selected {
    color: white;
}

.day.today.selected::after {
    background-color: white;
}


/* Search Bar Styles */


.search-field {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 2px 15px;
    transition: all 0.2s;
    cursor: pointer;
    background: white;
    height: 50px;
}

.search-field:hover {
    border-color: #adb5bd;
}

.field-label {
    font-size: 12px;
    margin-bottom: 0;
}

.field-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

/* Dropdown Styles */
.custom-dropdown {
    position: absolute;
    background: white;
    border-radius: var(--bs-border-radius);
    box-shadow: 1px 1px 1px rgb(149 149 149 / 75%);
    border: 1px solid var(--bs-border-color);
    z-index: 1050;
    display: none;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
}

#dateDropdownDesktop {
    max-height: none;
}

.custom-dropdown.show {
    display: block;
}

.dropdown-item-custom {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item-custom:hover {
    background-color: rgba(26, 26, 26, 0.1);
    ;
}

/* Modal Styles */
.mobile-modal {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 10600;
    display: none;
    flex-direction: column;
}

.mobile-modal.show {
    display: flex;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1055;
    display: none;
}

.modal-overlay.show {
    display: block;
}

/* Counter Buttons */
.filter-counter-group .counter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-counter-group .counter-btn-left {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
.filter-counter-group .counter-btn-right {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.counter-btn:hover {
    background: #e9ecef;
}

/* Quick Select Buttons */
.quick-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid var(--bs-border-color);
}

.quick-btn {
    padding: 4px 16px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: var(--bs-border-radius);
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-btn:hover {
    border-color: var(--bs-body-color);
    color: var(--bs-body-color);
}

.quick-btn.active {
    background: var(--gradient-black-to-gray);
    border-color: var(--bs-body-color);
    color: white;
}

/* Action Buttons */

.btn-clear,
.btn-done {
    /* flex: 1; */
    line-height: normal;
    padding: 0px 13px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear {
    background: white;
    border: 1px solid var(--bs-border-color);
    color: #1a1a1a;
}

.btn-clear:hover {
    background-color: rgba(26, 26, 26, 0.1);
}

.btn-done {
    background: var(--gradient-black-to-gray);
    border: 1px solid #1a1a1a;
    color: white;
}

.filter-counter-group {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    gap: 10px;   
}


/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-header {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #6c757d;
    padding: 4px;
}

/* Responsive */
@media (max-width: 767.98px) {
    .search-field {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}