/* Основний контейнер */
.ui-datepicker {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    /* slate-300 */
    border-radius: 0.375rem;
    /* rounded-md */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 16px;
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    /* slate-800 */
    z-index: 9999 !important;
    display: none;
}

/* Хедер календаря */
.ui-datepicker-header {
    background-color: #0f766e;
    /* teal-700 */
    color: #fff;
    padding: 0.5rem 2.5rem;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Назва місяця + рік */
.ui-datepicker-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 0.25rem 2rem;
    text-transform: capitalize;
}

/* Стрілки */
.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ui-datepicker-prev {
    left: 0.5rem;
}

.ui-datepicker-next {
    right: 0.5rem;
}

.ui-datepicker-prev::before {
    content: '‹';
    /* Стрілка вліво */
    font-size: 1.5rem;
}

.ui-datepicker-prev:hover::before,
.ui-datepicker-next:hover::before {
    color: #99f6e4;
    font-size: 2rem;
}

.ui-datepicker-next::before {
    content: '›';
    /* Стрілка вправо */
    font-size: 1.5rem;
}

/* Сітка днів */
.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;

}

.ui-datepicker-calendar th {
    padding: 0.4rem;
    font-weight: 500;
    color: #64748b;
    /* slate-500 */
    text-align: center;
}

.ui-datepicker-calendar td {
    padding: 0.4rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    color: #1e293b;
    font-size: 14px;
    width: 20px;
    height: 20px;
    /* slate-800 */
}

/* Ховер днів */
.ui-datepicker-calendar td:hover {
    background-color: #e0f2f1;
    padding: 0.4rem;
    border-radius: 0.375rem;
    width: 20px;
    height: 20px;
    /* teal-50 */
}

/* Активний день */
.ui-datepicker-calendar .ui-state-active {
    background-color: #0f766e;
    padding: 0.4rem;
    border-radius: 0.375rem;
    /* teal-700 */
    color: #fff;
    width: 20px;
    height: 20px;
}


.ui-datepicker-calendar .ui-state-highlight {
    background-color: #99f6e4;
    padding: 0.4rem;
    width: 20px;
    height: 20px;
    border-radius: 0.375rem;
    /* teal-200 */
    color: #0f766e;
}

.ui-icon-circle-triangle-w,
.ui-icon-circle-triangle-e {
    display: none;
}


html.dark .ui-datepicker {
    background-color: #0f151e;
    color: #e2e8f0;
    border-color: #334155;
}

html.dark .ui-datepicker-header {

    color: #e2e8f0;
    border-color: #334155;
}


html.dark .ui-state-default:hover {
    color: #e2e8f0;
}

html.dark .ui-state-default {

    color: #e2e8f0;
    border-color: #475569;
}

html.dark .ui-state-highlight:hover {}

html.dark .ui-state-highlight {
    background-color: #0d9488;
    color: white;
}

html.dark .ui-datepicker-calendar td:hover {
    color: #0f151e;
    background-color: #143633;

}