@charset "UTF-8";

/* Input-urile de tip .datepicker – stil inspirat din CORK */
.datepicker {
    display: block;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    background-color: #ffffff;
    color: #3b3f5c;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.datepicker::placeholder {
    color: #9ea7bc;
}

.datepicker:focus {
    outline: none;
    border-color: var(--cork-primary-border, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
    background-color: #ffffff;
}

.datepicker[readonly] {
    background-color: #f3f4ff;
    cursor: pointer;
}

/* Containerul calendarului vanilla.datepicker – restilizare tip CORK/flatpickr */
.vanilla-datepicker {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    color: #3b3f5c;
    font-size: 0.8rem;
    position: absolute;
    width: 280px;
    padding: 10px 10px 12px;
    box-shadow: 0 12px 30px rgba(31, 45, 61, 0.18);
    z-index: 1050;
}

/* Header lună/an – bară colorată ca în CORK */
.vanilla-datepicker > .title-nav {
    align-items: center;
    background: var(--cork-primary, #1d4ed8);
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    font-weight: 600;
    justify-content: space-between;
    margin: 0 0 8px;
    padding: 6px 8px;
    color: #ffffff;
    border: none;
}

.vanilla-datepicker > .title-nav > .month-navigate,
.vanilla-datepicker > .title-nav > .year-navigate {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex: 0 0 24px;
    height: 24px;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.vanilla-datepicker > .title-nav > .month-navigate:hover,
.vanilla-datepicker > .title-nav > .year-navigate:hover {
    background-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.vanilla-datepicker > .title-nav > .month-navigate:first-child,
.vanilla-datepicker > .title-nav > .year-navigate:first-child {
    align-self: center;
}

/* Headerul cu zilele săptămânii */
.vanilla-datepicker > .week-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #7e8299;
    margin-bottom: 4px;
}

.vanilla-datepicker > .week-header > div {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
}

/* Grid-ul de zile */
.vanilla-datepicker > .week {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.vanilla-datepicker > .week > div {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 1px 0;
    padding: 4px 0;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    min-height: 28px;
    line-height: 1;
    transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

/* Zile din altă lună / inactive */
.vanilla-datepicker > .week > div.no-select {
    cursor: default;
    background: #f4f5fb;
    color: #b0b7c3;
}

.vanilla-datepicker > .week > div:not(.no-select):hover {
    background: rgba(37, 99, 235, 0.12);
    color: #3b3f5c;
}

/* Zi selectată */
.vanilla-datepicker > .week > div.selected {
    background-color: var(--cork-primary, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
}

.vanilla-datepicker > .week > div.selected:hover {
    background-color: #1e40af;
    color: #ffffff;
}

