:root {
    --primary: rgb(104, 34, 67);
    --primary-light: rgb(104, 34, 67);
    --primary-dark: rgb(104, 34, 67);
    --secondary: rgb(104, 34, 67);
    --bg-primary: #2C2E33;
    --border: #777777;
    --text-secondary: #9CA3AF;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 300px;
    --transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);

}

.calendar {
    padding: 20px;
    width: 100%;
}

.calendar-header {
    text-align: center;
    margin-bottom: 10px;
}

.calendar-header h2 {
    margin: 0;
    font-weight: 500;
    font-size: clamp(18px, 2.5vw, 24px);
    /* Dynamically adjusts font size */
}

.month-nav {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.month-nav button {
    cursor: pointer;
    display: flex;
    align-items: center;
    border: var(--primary) solid 1px;
    padding: 10px;
}

.day-names,
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 10px;
}


.day-names div {
    padding: 5px 0;
    font-weight: bold;
}

.days .day {
    align-content: center;
    position: relative;
    aspect-ratio: 1;
    background-color: white;
    cursor: pointer;
    border-radius: 8px;
    font-size: 20px;
    transition: background 0.3s;
}

.days .day:hover {
    background-color: var(--primary);
    color: white;
}

.days .disabled:hover {
    background-color: white;
    color: #777777;
}

.days .disabled-date:not(.day-now):hover {
    color: #777777;
    background-color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.days .selected {
    background-color: var(--primary);
    color: white !important;
}

.days .day.date-now:hover {
    background-color: var(--primary);
    color: white !important;
}

.days .disabled-date.date-now:hover{
    color: var(--primary) !important;
}

.day.other-month {
    color: #888;
    opacity: 0.5;
    /* optional, if you want them non-clickable */
}


.days .day .tech-off {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #777777;
}

.days .day .salon-off {
    position: absolute;
    bottom: 6px;
    color: white;
    width: 100%;
    background-color: red;
    font-size: 12px;
}

.disabled {
    color: #888;
    opacity: 0.5;
    cursor: not-allowed !important;
}

.days .disabled-date {
    color: #777777;
    background-color: transparent !important;
    text-decoration: line-through;
    cursor: not-allowed !important;

}


.divider-calendar {
    width: 100%;
    height: 1px;
    border: 1px solid #383838;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin: 15px 0px;
}

.selected-month {
    font-weight: 600;
    font-size: 25px;
    width: 100%;
    text-align: center;
}

.date-picker {
    position: relative;
    display: inline-block;
}

.date-input {
    width: 150px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-dropdown--up {
    top: auto;
    bottom: 100%;
    /* Hiển thị phía trên */
    margin-top: 0;
    margin-bottom: 5px;
}

.calendar-dropdown {
    position: absolute;
    width: 100%;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    justify-self: anchor-center;
}

.custom-date-picker-input {
    border: none;
    outline: none;
    padding: 8px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    background-color: transparent;
}

.custom-date-picker-input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.select-custom .ant-select-single .ant-select-selector .ant-select-selection-item {
    font-weight: bold !important;
    border: none !important;
    outline: none !important;
    background: var(--primary) !important;
}

.select-custom .ant-select-selector {
    background: transparent !important;
    border: none !important;
    font-size: 16px;
    font-weight: bold;
}

.select-custom .ant-select-selector:focus {
    border: none !important;
}

.select-custom .ant-select-selection-item {
    color: #333;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: bold;
}

.days .disabled {
    background-color: transparent !important;
    color: #777777;
    cursor: not-allowed !important;
    /* opacity: 0.5; */
}

.button.next {
    border: none;
    padding: 10px 15px;
    background-color: transparent;

}

.button.previous {
    padding: 10px 15px;
    border: none;
    background-color: transparent;
}


.date-now {
    color: var(--primary) !important;
}

@media (min-width:767.98px) {
    .date-now::after {
        content: "▪";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 5px;
    }

}

@media (max-width:767.98px) {

    .calendar-dropdown {
        background: #212327;
        border: 1px solid #212327;
    }

    .selected-month {
        color: "white";
    }

    .select-custom .ant-select-selection-item {
        color: white;
    }

    .days {
        /* color: white; */
    }

    .days .day {
        border-radius: 8px;
    }

    .month-nav button {
        background: transparent;
        border: none;
        padding: 0px;
    }

    .calendar {
        padding: 10px;
    }
}