$primary: #2096f5;
$secondary: #fff;
$textColor: #8c8c8c;
$text-disabled: #d8d8d8;

.nepali-date-picker {
    position: relative;

    & .date-part-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.25rem;

        & .date-part-input {
            background: none !important;
            border: none !important;
            outline: none !important;
            text-decoration: none !important;
        }

        // & .date-part-separator {
        //     // padding: 0 0.25rem;
        // }
    }

    .calender {
        background: $secondary none repeat scroll 0 0;
        border-radius: 6px;
        box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
        color: $textColor;
        display: block;
        font-family: NotoSans, sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: normal;
        height: auto;
        letter-spacing: 0.2px;
        line-height: 1.25em;
        padding: 15px;
        position: absolute;
        text-align: right;
        -webkit-user-select: none;
        user-select: none;
        left: 0;
        z-index: 9999;

        .calendar-controller {
            align-items: center;
            display: flex;
            justify-content: space-between;
            position: relative;

            .date-indicator {
                display: flex;
            }

            .control {
                cursor: pointer;
                position: relative;
                text-align: center;

                &.icon-today {
                    position: absolute;
                    right: 20px;
                }

                &.month,
                &.year {
                    border: 1px solid #eee;
                    line-height: 24px;
                    width: 90px;

                    .current-month,
                    .current-year {
                        display: block;
                        padding: 4px;
                    }
                }

                &.year {
                    border-left: none;
                }

                .drop-down {
                    background-color: #fff;
                    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
                    left: 0;
                    max-height: 200px;
                    overflow-y: scroll;
                    position: absolute;
                    top: 0;
                    width: 100%;
                    z-index: 100;

                    ul {
                        list-style: none;
                        margin: 0;
                        padding: 0;
                    }

                    li {
                        padding: 4px 10px;

                        &.active {
                            background: $primary;
                            color: #fff;
                        }
                    }

                    &.dark,
                    &.forest {
                        background-color: #333;
                    }
                }
            }
        }

        td.month-day {
            cursor: pointer;

            &.current {
                opacity: 1;
            }

            &.disabled-light {
                color: $text-disabled;
            }
            &.disabled-dark {
                color: #757575;
            }
            &.disabled-forest {
                color: #7d8471;
            }

            &.today {
                color: $primary;
                position: relative;

                &::before {
                    background-color: $primary;
                    border-radius: 50%;
                    bottom: 6px;
                    content: "";
                    height: 4px;
                    left: 50%;
                    margin: auto;
                    position: absolute;
                    transform: translateX(-50%);
                    width: 4px;
                }
            }

            &.selected {
                color: #fff;
                position: relative;

                &::after {
                    background: $primary;
                    border-radius: 50%;
                    content: "";
                    height: 35px;
                    left: 50%;
                    position: absolute;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    width: 35px;
                    z-index: -1;
                }
            }
        }

        table {
            text-align: center;
            width: 100%;
            border: none;

            td {
                height: 40px;
                width: 40px;
                border: none;
            }

            tr {
                border: none;
                height: 36px;
            }
        }
    }

    .dark {
        background-color: #121212;
        color: #ffffff;
    }

    .light {
        background: $secondary none repeat scroll 0 0;
        color: $textColor;
    }
    .forest {
        background-color: #2a2d28;
        color: #d5d8c1;
    }
}
