.calendar-container {
    width: 100%;
    background: #fff;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-type-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.type-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #e9ecef;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.type-btn.active {
    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%);
    color: #fff;
    font-weight: 600;
}

.type-btn:hover:not(.active) {
    background: #b3d4fc;
}

.calendar-container .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%);
    color: #fff;
    position: relative;
    padding: 15px 11%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.calendar-container .calendar-header .month-year {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

.calendar-container .calendar-header .nav-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease;
}

.calendar-container .calendar-header .nav-btn:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.calendar-container .calendar-header .prev-month i::before {
    content: '\f105';
}

.calendar-container .calendar-header .next-month i::before {
    content: '\f104';
}

.calendar-container .calendar-body {
    padding: 15px;
}

.calendar-container .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #555;
    direction: rtl;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.calendar-container .calendar-days {
    display: grid;
    direction: rtl;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-container .day {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 45px;
    aspect-ratio: 1 / 1;
    margin: auto;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.calendar-container .day.today {
    border-color: #287dfa;
    border-style: solid;
    font-weight: 700;
    background: linear-gradient(135deg, #e6f0fa 0%, #ffffff 100%);
}

.calendar-container .day.locked {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    color: #fff;
    border-color: #c82333;
    cursor: not-allowed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 3;
    position: relative;
}


.calendar-container .day.reserved {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    color: #fff;
    border-color: #c82333;
    cursor: not-allowed !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 3;
    position: relative;
}

.calendar-container .day.locked::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 5;
}

.calendar-container .day.locked::after {
    content: none;
}

.calendar-container .day.locked-editable .day-number,
.calendar-container .day.reserved .day-number,
.calendar-container .day.locked .day-number {
    color: #fff;
}

.calendar-container .day.locked.reserved {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    border-color: #c82333;
}

.calendar-container .day.locked-past {
    background: linear-gradient(135deg, #a9a9a9 0%, #b0b0b0 100%);
    color: #fff;
    border-color: #a9a9a9;
    cursor: not-allowed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

.calendar-container .day.locked-editable-past {
    background: linear-gradient(135deg, #d3c8c8 0%, #e0d4d4 100%);
    color: #fff;
    border-color: #d3c8c8;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

.calendar-container .day.locked-past.reserved {
    background: linear-gradient(135deg, #d3c8c8 0%, #d3c8c8 100%);
    border-color: #a9a9a9;
}


.calendar-container .day.locked-past.locked-start {
    position: relative;
    background: none;
    background-color: transparent;
    cursor: not-allowed;
}

.calendar-container .day.locked-past.locked-start::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 5;
}

.calendar-container .day.locked-past.locked-start::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: transparent;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    z-index: 1;
}

.calendar-container .day.locked-past.locked-end {
    position: relative;
    background: none;
    background-color: transparent;
    cursor: not-allowed;
}

.calendar-container .day.locked-past.locked-end::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 5;
}

.calendar-container .day.locked-past.locked-end::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: transparent;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 1;
}

.calendar-container .day.locked-start {
    position: relative;
    background: none;
    background-color: transparent;
    cursor: not-allowed;
}

.calendar-container .day.locked-start::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 5;
}

.calendar-container .day.locked-start::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #dc3545; /* قرمز برای شروع بازه */
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-container .day.locked-end {
    position: relative;
    background: none;
    background-color: transparent;
    cursor: not-allowed;
}

.calendar-container .day.locked-end::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 5;
}

.calendar-container .day.locked-end::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #dc3545; /* قرمز برای پایان بازه */
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.calendar-container .day.locked-past.reserved-start,
.calendar-container .day.locked-past.reserved-end {
    background: linear-gradient(135deg, #d3c8c8 0%, #e0d4d4 100%);
    color: #fff;
    border-color: #d3c8c8;
    cursor: not-allowed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 3;
    position: relative;
}
.locked-end,.locked-start,.reserved-end,.reserved-start{
    cursor: pointer !important;
}
.calendar-container .day.locked-past.locked-start.locked-end {
    background: linear-gradient(135deg, #d3c8c8 0%, #e0d4d4 100%);
    color: #fff;
    border-color: #d3c8c8;
    cursor: not-allowed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 3;
    position: relative;
}

.calendar-container .day.locked-past.locked-start.locked-end::before {
    /*content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');*/
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 5;
}

.calendar-container .day.locked-past.locked-start.locked-end::after {
    content: none;
}

.calendar-container .day.adjacent-before-locked {
    position: relative;
    background-color: transparent;
    cursor: pointer;
}

.calendar-container .day.adjacent-before-locked::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 100%);
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    z-index: 2;
}

.calendar-container .day.adjacent-after-locked {
    position: relative;
    background-color: transparent;
    cursor: pointer;
}

.calendar-container .day.adjacent-after-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 100%);
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    z-index: 2;
}

.calendar-container .day .day-number {
    position: relative;
    z-index: 4;
    color: #333;
    font-weight: 500;
}

.calendar-container .day.locked .day-number,
.calendar-container .day.locked-past .day-number {
    color: #fff;
}

.calendar-container .day.past-day .day-number {
    color: #999;
}

.calendar-container .day.empty {
    cursor: default;
    background-color: transparent;
    pointer-events: none;
}

.calendar-container .calendar-footer {
    padding: 10px 25px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    position: relative;
}

.calendar-container .day.in-range {
    background: linear-gradient(135deg, #b3d4fc 0%, #a1c4fd 100%);
    color: #333;
    border-radius: 50%;
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.calendar-container .day.selected {
    background-color: transparent;
    color: #fff;
    transform: scale(1.05);
    border-color: transparent;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.calendar-container .day.selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%);
    border-radius: 50%;
    z-index: 2;
}

.calendar-container .day.start-range::after {
    content: '';
    position: absolute !important;
    top: 0 !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%) !important;
    z-index: 2 !important;
    left: 0 !important; /* تغییر از left: 50% به left: 0 */
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 50% !important;
    border-bottom-left-radius: 50% !important;
}

.calendar-container .day.end-range::after {
    content: '';
    position: absolute !important;
    top: 0 !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%) !important;
    z-index: 2 !important;
    left: 50% !important; /* تغییر از left: 0 به left: 50% */
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 50% !important;
    border-bottom-right-radius: 50% !important;
}

/*.calendar-container .day.locked-end.selected.end-range::after {*/
/*    content: '';*/
/*    position: absolute !important;*/
/*    top: 0 !important;*/
/*    width: 50% !important;*/
/*    height: 100% !important;*/
/*    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%) !important;*/
/*    z-index: 2 !important;*/
/*    left: 0 !important; !* تغییر به left: 0 *!*/
/*    border-top-right-radius: 0 !important;*/
/*    border-bottom-right-radius: 0 !important;*/
/*    border-top-left-radius: 50% !important;*/
/*    border-bottom-left-radius: 50% !important;*/
/*}*/


.calendar-container .day:not(.empty):not(.selected):not(.in-range):not(.locked):not(.reserved):not(.past-day):not(.locked-editable):hover {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 36px;
    cursor: pointer;
    color: #fff;
}

.close-btn:hover {
    transform: scale(1.05);
}

.calendar-container .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    position: relative;
    margin: 0 15px;
}

.calendar-container .calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    z-index: 10;
}

.calendar-container .legend-text {
    font-size: 0.9rem;
    color: #555;
}

.calendar-container .legend-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #ccc;
}

.calendar-container .legend-color-box {
    width: 16px;
    height: 16px;
    display: inline-block;
    position: relative;
}

.calendar-container .legend-color-box.range-end {
    position: relative;
    background-color: transparent;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
}

.calendar-container .legend-color-box.range-end::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}

.calendar-container .legend-color-box.range-start {
    position: relative;
    background-color: transparent;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
}

.calendar-container .legend-color-box.range-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}

.calendar-container .legend-color-box.locked-editable {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 50%;
}

.calendar-container .legend-color-box.locked-editable-past {
    background: linear-gradient(135deg, #d3c8c8 0%, #e0d4d4 100%);
    border-radius: 50%;
}

.calendar-container .legend-color-box.locked-range-end {
    position: relative;
    background-color: transparent;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
}

.calendar-container .legend-color-box.locked-range-end::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #dc3545; /* قرمز برای پایان بازه */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}

.calendar-container .legend-color-box.locked-range-end::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: transparent;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 1;
}

.calendar-container .legend-color-box.locked-range-start {
    position: relative;
    background-color: transparent;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
}

.calendar-container .legend-color-box.locked-range-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #dc3545; /* قرمز برای شروع بازه */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}

.calendar-container .legend-color-box.locked-range-start::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: transparent;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    z-index: 1;
}

.calendar-legend-toggle .arrow-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.calendar-legend-toggle.open .arrow-icon {
    transform: rotate(180deg);
}

.calendar-legend-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    gap: 10px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row-reverse;
}

.legend-color-box {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid transparent;
}

.more-legend-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.more-legend-items.open {
    max-height: 200px;
}

.calendar-legend-toggle {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #287dfa;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.calendar-legend-toggle i {
    font-size: 0.7rem;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.calendar-legend-toggle.open i {
    transform: rotate(180deg);
}

.calendar-container .legend-color-box.selected {
    background: linear-gradient(135deg, #287dfa 0%, #1e5bb5 100%);
    border-radius: 50%;
}

.calendar-container .legend-color-box.today {
    background-color: transparent;
    border: 2px solid #287dfa;
    border-radius: 50%;
}

.calendar-container .legend-color-box.locked {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    border-radius: 50%;
}

.calendar-container .legend-color-box.locked-past {
    background: linear-gradient(135deg, #a9a9a9 0%, #b0b0b0 100%);
    border-radius: 50%;
}

.calendar-container .legend-color-box.diff-price::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(to right, #20c997, #ffc107);
}

.calendar-container .legend-color-box.special-date {
    border-radius: 50%;
    background-color: #20c997;
}

.calendar-container .legend-color-box.force-one-more {
    position: relative;
    background: var(--rule-color, #fec20f);
    clip-path: polygon(50% 0%, 100% 50%, 50% 50%);
    width: 22px;
    height: 22px;
}

.calendar-container .legend-color-box.force-one-more .force-one-more-indicator {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    background: var(--rule-color, #fec20f);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    z-index: 5;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

.day.has-special-price .day-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    background: var(--price-color, #6a1b9a);
    z-index: 5;
}

.day.has-special-price.selected .day-number::after {
    background: #fff;
}

.day.is-special-date .day-number::before {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--special-date-color, #20c997);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.day.is-special-date.selected .day-number::before {
    background-color: #fff;
}

.day.force-one-more-day {
    position: relative;
}

.day.force-one-more-day .force-one-more-indicator {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: var(--rule-color, #fec20f);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    z-index: 5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.day.force-one-more-day.selected .force-one-more-indicator {
    background: #fff;
}

.day.package-day {
    outline: 2px solid var(--package-color, #ffc107);
    outline-offset: 2px;
    z-index: 5;
}

.day.package-day.selected {
    outline: 2px solid #fff;
}


html[dir="rtl"] .calendar-container .calendar-header .prev-month i::before {
    content: '\f105'; /* Right Arrow */
}

html[dir="rtl"] .calendar-container .calendar-header .next-month i::before {
    content: '\f104'; /* Left Arrow */
}

html[dir="ltr"] .calendar-container .calendar-header .prev-month i::before {
    content: '\f104'; /* Left Arrow */
}

html[dir="ltr"] .calendar-container .calendar-header .next-month i::before {
    content: '\f105'; /* Right Arrow */
}

html[dir="rtl"] .legend-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .legend-item:not(:last-child)::after {
    left: -15px;
    right: auto;
}

html[dir="rtl"] .calendar-legend-toggle i {
    margin-right: 5px;
    margin-left: 0;
}

html[dir="ltr"] .legend-item {
    flex-direction: row;
}

html[dir="ltr"] .legend-item:not(:last-child)::after {
    right: -15px;
    left: auto;
}

html[dir="ltr"] .calendar-legend-toggle i {
    margin-left: 5px;
    margin-right: 0;
}


.calendar-container .day.start-range::after {
    left: 0;
    right: auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}
.calendar-container .day.end-range::after {
    left: 50%;
    right: auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}


.calendar-container .day.reserved-start {
    position: relative;
    background: none;
    background-color: transparent;
    cursor: not-allowed;
}

.calendar-container .day.locked-past.reserved-start::after,
.calendar-container .day.locked-past.reserved-end::after {
    background: rgba(220, 53, 69, 0.2);
}

.calendar-container .day.reserved-start::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #dc3545;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-container .day.reserved-end {
    position: relative;
    background: none;
    background-color: transparent;
    cursor: not-allowed;
}

.calendar-container .day.reserved-end::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #dc3545;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-container .day.reserved-start.reserved-end {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    color: #fff;
    border-color: #dc3545;
    cursor: not-allowed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 3;
    position: relative;
}

.calendar-container .day.reserved-start.reserved-end::after {
    content: none;
}
