/* =====================================================
   A. DATEPICKER (MINI-CALENDAR) – `.datepicker .day`
   ===================================================== */

/* ONLINE – background albastru turcoaz */
.tribe-events .datepicker .day.tec-custom-online,
.datepicker .day.tec-custom-online {
    background-color: rgba(93, 225, 230, 0.45) !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
}

/* REZIDENȚIAL – background portocaliu */
.tribe-events .datepicker .day.tec-custom-rezidential,
.datepicker .day.tec-custom-rezidential {
    background-color: rgba(255, 145, 77, 0.45) !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
}

/* MIX – gradient diagonal */
.tribe-events .datepicker .day.tec-custom-mixed,
.datepicker .day.tec-custom-mixed {
    background: linear-gradient(
        180deg,
        rgba(255, 145, 77, 0.50) 0%,
        rgba(255, 145, 77, 0.50) 50%,
        rgba(93, 225, 230, 0.50) 50%,
        rgba(93, 225, 230, 0.50) 100%
    ) !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
}

/* Ziua curentă: păstrează border-ul roșu/accent existent */
.tribe-events .datepicker .day.current.tec-custom-online,
.tribe-events .datepicker .day.current.tec-custom-rezidential,
.tribe-events .datepicker .day.current.tec-custom-mixed,
.datepicker .day.current.tec-custom-online,
.datepicker .day.current.tec-custom-rezidential,
.datepicker .day.current.tec-custom-mixed {
    border: 1px solid var(--tec-color-accent-primary, #e0281e) !important;
}

/* Zilele din altă lună – opacitate redusă */
.tribe-events .datepicker .day.old.tec-custom-online,
.tribe-events .datepicker .day.old.tec-custom-rezidential,
.tribe-events .datepicker .day.old.tec-custom-mixed,
.tribe-events .datepicker .day.new.tec-custom-online,
.tribe-events .datepicker .day.new.tec-custom-rezidential,
.tribe-events .datepicker .day.new.tec-custom-mixed,
.datepicker .day.old.tec-custom-online,
.datepicker .day.old.tec-custom-rezidential,
.datepicker .day.old.tec-custom-mixed,
.datepicker .day.new.tec-custom-online,
.datepicker .day.new.tec-custom-rezidential,
.datepicker .day.new.tec-custom-mixed {
    opacity: 0.4;
}

/* Hover pe zilele colorate din datepicker */
.tribe-events .datepicker .day.tec-custom-online:hover,
.datepicker .day.tec-custom-online:hover {
    background-color: rgba(93, 225, 230, 0.65) !important;
}

.tribe-events .datepicker .day.tec-custom-rezidential:hover,
.datepicker .day.tec-custom-rezidential:hover {
    background-color: rgba(255, 145, 77, 0.65) !important;
}

.tribe-events .datepicker .day.tec-custom-mixed:hover,
.datepicker .day.tec-custom-mixed:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 145, 77, 0.50) 0%,
        rgba(255, 145, 77, 0.50) 50%,
        rgba(93, 225, 230, 0.50) 50%,
        rgba(93, 225, 230, 0.50) 100%
    ) !important;
}

/* =====================================================
   B. MONTH VIEW GRID – `.tribe-events-calendar-month__day`
   ===================================================== */

/* ONLINE */
.tribe-events .tribe-events-calendar-month__day.tec-custom-day--online {
    background-color: rgba(93, 225, 230, 0.18) !important;
}

/* REZIDENȚIAL */
.tribe-events .tribe-events-calendar-month__day.tec-custom-day--rezidential {
    background-color: rgba(255, 145, 77, 0.18) !important;
}

/* MIX */
.tribe-events .tribe-events-calendar-month__day.tec-custom-day--mixed {
    background: linear-gradient(
        180deg,
        rgba(255, 145, 77, 0.50) 0%,
        rgba(255, 145, 77, 0.50) 50%,
        rgba(93, 225, 230, 0.50) 50%,
        rgba(93, 225, 230, 0.50) 100%
    ) !important;
}

/* Ziua curentă – Month View */
.tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--current.tec-custom-day--online,
.tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--current.tec-custom-day--rezidential,
.tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--current.tec-custom-day--mixed {
    box-shadow: inset 0 0 0 2px var(--tec-color-accent-primary, #334aff);
}

/* Hover – Month View */
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day.tec-custom-day--online:hover::after,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day.tec-custom-day--rezidential:hover::after,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day.tec-custom-day--mixed:hover::after {
    background-color: var(--tec-color-border-active-month-grid-hover, rgba(0, 0, 0, 0.2));
}

/* Mobile – ziua selectată */
.tribe-events .tribe-events-calendar-month__day.tec-custom-day--online .tribe-events-calendar-month__day-cell--selected,
.tribe-events .tribe-events-calendar-month__day.tec-custom-day--rezidential .tribe-events-calendar-month__day-cell--selected,
.tribe-events .tribe-events-calendar-month__day.tec-custom-day--mixed .tribe-events-calendar-month__day-cell--selected {
    background-color: var(--tec-color-accent-primary);
}

/* Zile din altă lună – Month View */
.tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--other-month.tec-custom-day--online,
.tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--other-month.tec-custom-day--rezidential,
.tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--other-month.tec-custom-day--mixed {
    opacity: 0.5;
}

.tribe-events .datepicker .day.current {
    background: white;
    color: black;
    border: 2px solid red;
}

.tribe-events .datepicker .day.current:hover {
    background: red;
    color: white;
}