﻿/* VARIABLES — change just these two lines to recolor the whole picker */
:root {
    --dp-accent: #3b82f6; /* primary highlight (blue-500)   */
    --dp-accent-fg: #ffffff; /* text/icon on accent background */
}

/* ========= Base card ========= */
.ui-datepicker {
    font-family: "Inter", "Segoe UI", sans-serif;
    border: none;
    border-radius: 12px;
    padding: 18px 15px !important;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 24px rgba(0,0,0,.08);
    width: 336px !important
}

.ui-datepicker-calendar {
    margin: 0px !important;
}

/* ========= Header (month switch) ========= */
.ui-datepicker-header {
    display: flex;
    gap: 4px;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 4px 0 12px;
}

.ui-datepicker-title {
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: .01em;
    color: #111827;
}

.ui-datepicker-prev, .ui-datepicker-next {
    cursor: pointer;
    width: 36px !important;
    height: 36px !important;
    display: grid;
    place-content: center;
    border-radius: 8px;
    transition: background .2s;
}

.ui-datepicker span.ui-icon {
    width: 8px !important;
    height: 8px !important;
}
    .ui-datepicker-prev:hover, .ui-datepicker-next:hover {
        background: rgba(0,0,0,.06);
    }

    .ui-datepicker-prev span, .ui-datepicker-next span { /* default glyphs */
        background-image: none; /* kill jQuery-UI sprite */
        border: solid #374151;
        border-width: 0 2px 2px 0;
        display: inline-block;
        padding: 5px;
    }

    .ui-datepicker-prev span {
        transform: rotate(135deg);
    }

    .ui-datepicker-next span {
        transform: rotate(-45deg);
    }

/* ========= Table ========= */
.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
}

.ui-datepicker th {
    font-weight: 600;
    color: #272a2e;
    padding-bottom: 4px;
}

.ui-datepicker td {
    padding: 2px;
}

    .ui-datepicker td span,
    .ui-datepicker td a {
        display: grid;
        place-content: center;
        height: 36px;
        width: 36px;
        border-radius: 8px;
        text-decoration: none;
        color: #111827;
        transition: background .15s, color .15s;

        border: none !important;
        background: transparent !important;
    }

        .ui-datepicker td a:hover {
            background: rgba(0,0,0,.06);
        }

ui-datepicker td {
    border-radius: 50% !important;
}

.ui-datepicker-current-day {
    border-radius: 50%;
    border: none !important;
    background: #ebf1fb;
}

.ui-datepicker-current-day a {
    color: #454545 !important;
}

.ui-datepicker td:has(>a.ui-state-hover) {
    border-radius: 50% !important;
    background: #c7d8f3 !important;
}

/* ========= Accent states ========= */
.ui-datepicker-today a { /* today’s date outline */
    border: 2px solid var(--dp-accent);
    line-height: 30px; /* compensate for border */
}

.ui-state-active, /* selected date */
.ui-datepicker td.selected a,
.ui-datepicker td a.ui-state-active {
    background: var(--dp-accent);
    color: var(--dp-accent-fg);
}

.ui-datepicker td.ui-state-disabled *,
.ui-datepicker td.ui-state-disabled {
    color: #d1d5db !important;
}

/* ========= Range helper (optional) ========= */
.ui-datepicker td.range-start a,
.ui-datepicker td.range-end a {
    background: var(--dp-accent);
    color: var(--dp-accent-fg);
}

.ui-datepicker td.in-range a {
    background: rgba(59,130,246,.12);
}
