.datepicker {
    background-color: #ffffff;
    border: 1px solid rgba(220, 101, 95, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
    position: absolute;
    z-index: 1050;
    padding: 0.75rem;
    width: 280px;
    font-family: inherit;
}

.datepicker .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.25rem;
    background-color: #faf8f4;
    border-bottom: 1px solid rgba(220, 101, 95, 0.1);
    border-radius: 0.375rem 0.375rem 0 0;
    margin: -0.75rem -0.75rem 0.75rem -0.75rem;
}

.datepicker .nav span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.datepicker .nav .bg {
    display: none;
}

.datepicker .button {
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    color: #dc655f;
    font-weight: bold;
    font-size: 1.1rem;
    user-select: none;
}

.datepicker .button:hover {
    background-color: rgba(220, 101, 95, 0.1);
    color: #dc655f;
}

.datepicker .months, .datepicker .years {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.datepicker .months {
    flex: 1.2; /* Give slightly more space to months */
}

.datepicker .months .name, .datepicker .years .name {
    font-weight: 600;
    color: #181611;
    padding: 0 0.25rem;
    font-size: 0.875rem;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.datepicker .months .name {
    width: 80px; /* Fixed width for month names to prevent jumping */
}

.datepicker .years .name {
    width: 45px; /* Fixed width for year to prevent jumping */
}

.datepicker .calendar {
    padding: 0;
}

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

.datepicker .dow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-weight: 700;
    color: #66635d;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.datepicker .days div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    cursor: pointer;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    margin: 0;
}

.datepicker .days div:hover:not(.disabled) {
    background-color: rgba(220, 101, 95, 0.1);
    color: #dc655f;
}

.datepicker .overlap {
    color: #bfbfbf;
}

.datepicker .today {
    border: 1px solid #dc655f;
    color: #dc655f;
}

.datepicker .selected {
    background-color: #dc655f !important;
    color: #ffffff !important;
}

.datepicker .disabled {
    cursor: not-allowed;
    color: #dee2e6;
    background-color: transparent;
}

.datepicker .disabled:hover {
    background-color: transparent;
    color: #dee2e6;
}

/* Header for days of week */
.datepicker .calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
