.custom-calendar {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 2000;
    width: 300px;
    padding: 14px;
    border: 1px solid #30343b;
    border-radius: 10px;
    background: #191c21;
    color: #e1e3e8;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    user-select: none;
}

.custom-calendar[hidden] {
    display: none;
}

.custom-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.custom-calendar-title {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #c8cdd5;
    font-size: 12px;
    font-weight: 600;
}

.custom-calendar-month {
    color: #e1e3e8;
}

.custom-calendar-year {
    color: #7e858f;
}

.custom-calendar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.custom-calendar-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 1px solid #353a42;
    border-radius: 6px;
    background: transparent;
    color: #a6abb5;
    cursor: pointer;
    font-family: inherit;
    font-size: 0;
    line-height: 0;
}

.custom-calendar-nav button:hover {
    background: #25282e;
    border-color: #464c56;
    color: #eceef2;
}

.custom-calendar-nav button svg {
    display: block;
    position: static;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    transform: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.custom-calendar-weekdays,
.custom-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.custom-calendar-weekdays {
    margin-bottom: 5px;
}

.custom-calendar-weekday {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #686f79;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.custom-calendar-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #a6abb5;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.custom-calendar-day:hover {
    background: #25282e;
    border-color: #464c56;
    color: #eceef2;
}

.custom-calendar-day.other-month {
    color: #535a65;
}

.custom-calendar-day.other-month:hover {
    color: #969ca6;
}

.custom-calendar-day.future {
    color: #353a42;
    cursor: default;
    pointer-events: none;
}

.custom-calendar-day.future:hover {
    background: transparent;
    border-color: transparent;
    color: #353a42;
}

.custom-calendar-day.today {
    color: #4ade80;
}

.custom-calendar-day.today::after {
    content: "";
    position: absolute;
    bottom: 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.custom-calendar-day.selected {
    background: #292d33;
    border-color: #4b515b;
    color: #eceef2;
}

.custom-calendar-day.selected.today {
    color: #4ade80;
}

.custom-calendar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #2b2e34;
}

.custom-calendar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-calendar-selected {
    color: #686f79;
    font-size: 10px;
}

.custom-calendar-today {
    height: 26px;
    padding: 0 10px;
    border: 1px solid #353a42;
    border-radius: 6px;
    background: transparent;
    color: #a6abb5;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.custom-calendar-today:hover {
    background: #25282e;
    border-color: #464c56;
    color: #eceef2;
}

.custom-calendar-clear {
    height: 26px;
    padding: 0 10px;
    border: 1px solid #353a42;
    border-radius: 6px;
    background: transparent;
    color: #7e858f;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.custom-calendar-clear:hover {
    background: #25282e;
    border-color: #464c56;
    color: #eceef2;
}

.custom-calendar-clear.active {
    border-color: #353a42;
    background: transparent;
    color: #a6abb5;
}

.custom-calendar-clear.active:hover {
    background: #25282e;
    border-color: #464c56;
    color: #eceef2;
}

body.light .custom-calendar {
    border-color: #bdc3cc;
    background: #e5e7eb;
    color: #252a32;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

body.light .custom-calendar-title {
    color: #343b46;
}

body.light .custom-calendar-month {
    color: #252a32;
}

body.light .custom-calendar-year {
    color: #626c7a;
}

body.light .custom-calendar-nav button {
    border-color: #bdc3cc;
    color: #626c7a;
}

body.light .custom-calendar-nav button:hover {
    background: #d1d6de;
    border-color: #a9b0bb;
    color: #252a32;
}

body.light .custom-calendar-weekday {
    color: #626c7a;
}

body.light .custom-calendar-day {
    color: #414853;
}

body.light .custom-calendar-day:hover {
    background: #d1d6de;
    border-color: #a9b0bb;
    color: #252a32;
}

body.light .custom-calendar-day.future {
    color: #b3bac5;
}

body.light .custom-calendar-day.future:hover {
    background: transparent;
    border-color: transparent;
    color: #b3bac5;
}

body.light .custom-calendar-day.other-month {
    color: #a9b0bb;
}

body.light .custom-calendar-day.other-month:hover {
    color: #626c7a;
}

body.light .custom-calendar-day.today {
    color: #15803d;
}

body.light .custom-calendar-day.selected {
    background: #d1d6de;
    border-color: #a9b0bb;
    color: #252a32;
}

body.light .custom-calendar-day.selected.today {
    color: #15803d;
}

body.light .custom-calendar-footer {
    border-top-color: #bdc3cc;
}

body.light .custom-calendar-selected {
    color: #626c7a;
}

body.light .custom-calendar-today {
    border-color: #bdc3cc;
    background: transparent;
    color: #414853;
}

body.light .custom-calendar-today:hover {
    background: #d1d6de;
    border-color: #a9b0bb;
    color: #252a32;
}

body.light .custom-calendar-clear {
    border-color: #bdc3cc;
    background: transparent;
    color: #626c7a;
}

body.light .custom-calendar-clear:hover {
    background: #d1d6de;
    border-color: #a9b0bb;
    color: #252a32;
}

body.light .custom-calendar-clear.active {
    border-color: #bdc3cc;
    background: transparent;
    color: #414853;
}

body.light .custom-calendar-clear.active:hover {
    background: #d1d6de;
    border-color: #a9b0bb;
    color: #252a32;
}