/* Date Range Picker — liquid glass */

.date-range-picker-wrapper {
    position: relative;
    display: inline-block;
    z-index: 20000;
}

.date-range-picker-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    color: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.date-range-picker-button:hover {
    border-color: rgba(94, 234, 212, 0.45);
    background: rgba(94, 234, 212, 0.08);
    transform: translateY(-1px);
}

.date-range-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    z-index: 30000;
    min-width: 600px;
    padding: 20px;
}

.date-range-picker-header {
    margin-bottom: 16px;
}

.quick-select-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-select-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    color: rgba(226, 232, 240, 0.85);
    transition: all 0.2s;
}

.quick-select-btn:hover {
    background: rgba(94, 234, 212, 0.12);
    border-color: rgba(94, 234, 212, 0.4);
    color: #99f6e4;
}

.date-range-picker-calendars {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.calendar-container {
    flex: 1;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calendar-month-year {
    font-weight: 600;
    font-size: 14px;
    color: rgba(248, 250, 252, 0.95);
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 6px 12px;
    color: rgba(148, 163, 184, 0.95);
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s, border-color 0.2s;
    border-radius: 10px;
}

.calendar-nav-btn:hover {
    color: #5eead4;
    border-color: rgba(94, 234, 212, 0.35);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays > div {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
    padding: 4px;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.08);
}

.calendar-day.other-month {
    color: rgba(100, 116, 139, 0.7);
}

.calendar-day.today {
    font-weight: 600;
    color: #5eead4;
}

.calendar-day.today:not(.in-range):not(.start-date):not(.end-date) {
    border: 1px solid rgba(94, 234, 212, 0.5);
}

.calendar-day.in-range {
    background: rgba(94, 234, 212, 0.18);
    color: #ccfbf1;
}

.calendar-day.start-date,
.calendar-day.end-date {
    background: linear-gradient(145deg, #14b8a6, #0d9488);
    color: white;
    font-weight: 600;
}

.calendar-day.start-date {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.calendar-day.end-date {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.calendar-day.disabled {
    color: rgba(71, 85, 105, 0.6);
    cursor: not-allowed;
    opacity: 0.45;
}

.date-range-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .date-range-picker-dropdown {
        min-width: 320px;
    }

    .date-range-picker-calendars {
        flex-direction: column;
    }
}
