.date-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 42px;
    padding: 4px 8px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #fff;
    color: #3a4454;
    font-size: 14px;
}

.date-picker:focus-within {
    border-color: #722ed1;
    box-shadow: 0 0 0 2px rgb(114 46 209 / 12%);
}

.date-search-button {
    display: inline-flex;
    flex: 0 0 116px;
    align-items: center;
    justify-content: center;
    width: 116px;
    min-width: 116px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #e1e5eb;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
    box-shadow: 0 3px 0 #d9dde4, 0 5px 12px rgb(31 39 51 / 10%);
    color: #3a4454;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.date-search-button:hover {
    transform: translateY(-1px);
    border-color: #cfc4df;
    box-shadow: 0 4px 0 #d9dde4, 0 7px 15px rgb(31 39 51 / 13%);
    color: #63428f;
}

.date-search-button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #d9dde4, 0 2px 5px rgb(31 39 51 / 10%);
}

.date-search-button:focus-visible {
    outline: 3px solid rgb(114 46 209 / 30%);
    outline-offset: 2px;
}

.date-picker .date-picker-year,
.date-picker .date-picker-month,
.date-picker .date-picker-day {
    width: 38px;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
}

.date-picker .date-picker-year { width: 52px; }
.date-picker input::placeholder { color: #929baa; opacity: 1; }
.date-picker-toggle,
.date-picker-calendar-header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #596579;
    cursor: pointer;
}

.date-picker-toggle {
    width: 30px;
    height: 30px;
    margin-left: 2px;
    font-size: 18px;
}

.date-picker-toggle:hover,
.date-picker-calendar-header button:hover { background: #f3eef8; color: #722ed1; }

.date-picker-calendar {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    width: 272px;
    padding: 12px;
    border: 1px solid #e4e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(31 39 51 / 16%);
}

.date-picker-calendar[hidden] { display: none; }
.date-picker-calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.date-picker-calendar-header strong { color: #1f2733; font-size: 14px; }
.date-picker-calendar-header button { width: 30px; height: 30px; font-size: 22px; }
.date-picker-weekdays,
.date-picker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.date-picker-weekdays { margin-bottom: 4px; color: #929baa; font-size: 12px; }
.date-picker-days button,
.date-picker-days span { width: 32px; height: 32px; }
.date-picker-days button {
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #3a4454;
    cursor: pointer;
    font: inherit;
}

.date-picker-days button:hover { background: #f3eef8; color: #722ed1; }
.date-picker-days button.is-today { outline: 1px solid #b99ae0; }
.date-picker-days button.is-selected { background: #722ed1; color: #fff; }

@media (max-width: 480px) {
    .date-picker-calendar { width: 260px; }
}
