@use "../../utils" as *;

/*----------------------------
dashboard design
------------------------------*/

.td-dashboard {
    position: relative;

    &-aside {
        position: fixed;
        width: 265px;
        min-width: 265px;
        padding: 40px 40px 0 0;
        height: 100%;
        top: 0;
        overflow-y: auto;
        z-index: 20;
        background-color: var(--td-white);
        border-right: 1px solid #E3E3E3;

        @include rtl{
            padding: 40px 0px 0 40px;
            border-left: 1px solid #E3E3E3;
            border-right: 0;
        }

        @media #{$md,$xs} {
            width: 220px;
            min-width: 220px;
            padding: 30px 30px 0 0;

            @include rtl{
                padding: 30px 30px 0 0;
            }
        }

        @media #{$xs} {
            left: 0;
            transform: translateX(-100%);
            opacity: 0;
            transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;


            &.active {
                transform: translateX(0);
                opacity: 1;
            }
        }



        &-menu {
            margin-top: 80px;

            ul {
                list-style-type: none;
                li {
                    margin-bottom: 10px;

                    a {
                        padding: 7px 20px;
                        color: #666;
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 24px;
                        display: flex;
                        gap: 10px;
                        align-items: center;
                        border-radius: 4px;
                        transition: background-color 0.3s ease-in-out;

                        &:hover {
                            background-color: #F3F4F8;
                            color: var(--td-theme-bg-color);
                        }

                        &.active {
                            background-color: #F3F4F8;
                            color: var(--td-theme-bg-color);
                        }

                    }

                    button {
                        padding: 7px 20px;
                        color: #666;
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 24px;
                        width: 100%;
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        border-radius: 4px;

                        &.text-icon {
                            display: flex;
                            align-items: center;
                            gap: 10px;
                        }

                        transition: background-color 0.3s ease-in-out;

                        &:hover {
                            background-color: #F3F4F8;
                            color: var(--td-theme-bg-color);
                        }

                        &.active {
                            background-color: #F3F4F8;
                            color: var(--td-theme-bg-color);
                        }
                    }
                }
            }

            &-sub {
                margin-inline-start: 38px;
                list-style-type: none;
                margin-top: 10px;
                display: none;

                @media #{$md,$xs} {
                    margin-inline-start: 25px;
                }

                a {
                    padding: 7px 20px;
                    color: #666;
                    font-size: 14px;
                    font-weight: 500;
                    line-height: 24px;
                    display: flex;
                    gap: 10px;
                    align-items: center;
                    border-radius: 4px;
                    transition: background-color 0.3s ease-in-out;

                    &:hover {
                        background-color: #F3F4F8;
                        color: var(--td-theme-bg-color);
                    }

                    &.active {
                        background-color: #F3F4F8;
                        color: var(--td-theme-bg-color);
                    }
                }

                button {
                    padding: 6px 10px;
                    color: #666;
                    font-size: 14px;
                    font-weight: 500;
                    line-height: 24px;
                    width: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    border-radius: 4px;

                    &.text-icon {
                        display: flex;
                        align-items: center;
                        gap: 10px;
                    }

                    transition: background-color 0.3s ease-in-out;

                    &:hover {
                        background-color: #F3F4F8;
                    }

                    &.active {
                        background-color: #F3F4F8;
                    }
                }
            }
        }
    }

    &-content {
        flex-grow: 1;
        padding-top: 40px;
        padding-bottom: 40px;
         padding-inline-end: 40px;
         padding-inline-start: 305px;
        background: var(--td-white);
        transition: all 0.3s ease;

        @media #{$md,$xs} {
            padding-top: 30px;
            padding-bottom: 30px;
             padding-inline-end: 30px;
             padding-inline-start: 250px;
        }

        &-mobileToggle {
            display: none;
        }

        @media #{$xs} {
             padding-inline-start: 30px;

            &-mobileToggle {
                display: block;
                margin-bottom: 20px;

                button {
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    background-color: #E3E3E3;
                    border-radius: 5px;
                    padding: 5px 10px;

                    img {
                        width: 20px;
                    }
                }


            }
        }

        &-box {
            h2 {
                color: var(--td-theme-bg-color);
                font-size: 20px;
                font-weight: 700;
                margin-bottom: 36px;
            }

            &-intro-card {
                padding: 16px 16px;
                background-size: cover;
                background-repeat: no-repeat;
                background-position: center;
                width: 100%;
                border-radius: 9px;

                span {
                    color: rgba(34, 34, 34, 0.60);
                    font-size: 14px;
                    font-weight: 500;
                    display: inline-block;
                    margin-bottom: 5px;
                }

                h3 {
                    color: var(--td-theme-bg-color);
                    font-size: 20px;
                    font-weight: 600;
                    margin-bottom: 5px;
                }

                p {
                    color: var(--td-theme-bg-color);
                    font-size: 14px;
                    font-weight: 400;
                }
            }

            &-referral {
                margin-top: 30px;

                h3 {
                    color: var(--td-theme-bg-color);
                    font-size: 20px;
                    font-weight: 700;
                    margin-bottom: 8px;
                }

                p {
                    color: rgba(34, 34, 34, 0.60);
                    font-size: 14px;
                    font-weight: 400;
                    margin-bottom: 16px;
                }

                &-inputBox {
                    display: flex;
                    align-items: center;
                    gap: 28px;
                    width: 100%;

                    @media #{$lg,$md,$xs} {
                        flex-direction: column;
                        align-items: start;
                    }

                    &-input {
                        position: relative;
                        width: 85%;

                        @media #{$lg,$md,$xs} {
                            width: 100%;
                        }

                        input {
                            outline: none;
                            border: 1px solid rgba(34, 34, 34, 0.10);
                            background: rgba(255, 255, 255, 0.04);
                            height: 48px;
                            width: 100%;
                            font-size: 14px;
                            font-weight: 400;
                            line-height: 18px;
                            color: rgba(34, 34, 34, 0.60);
                            padding: 0px 113px 0 16px;
                            border-radius: 8px;

                            @include rtl{
                                padding: 0px 16px 0 16px;
                            }

                            &::placeholder {
                                color: rgba(34, 34, 34, 0.60);
                                font-size: 14px;
                                opacity: 1;
                            }

                            &:focus {
                                border-color: var(--td-theme-color);
                                color: #333;
                                box-shadow: none;

                                &::placeholder {
                                    opacity: 0;
                                }
                            }
                        }

                        button {
                            position: absolute;
                            top: 7px;
                            inset-inline-end: 7px;
                            padding: 8px 16px;
                            border-radius: 4px;
                            color: var(--td-theme-bg-color);
                            font-size: 14px;
                            font-weight: 700;
                            line-height: 18px;
                            background-color: var(--td-theme-color);
                        }

                        &-2{
                            button{
                                background-color: var(--td-theme-color-2);
                                color: var(--td-white);
                            }
                        }

                        p {
                            position: absolute;
                            inset-inline-start: 0;
                            bottom: -48px;
                            color: #F7931A;
                            font-size: 14px;
                            font-weight: 400;
                            margin-top: 5px;
                        }
                    }

                    &-share {
                        display: flex;
                        align-items: center;
                        gap: 16px;
                        width: 15%;

                        @media #{$lg,$md,$xs} {
                            width: 100%;
                            margin-top: 10px;
                        }

                        a {
                            width: 36px;
                            height: 36px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            background-color: #F6F6F6;
                            border-radius: 4px;
                            transition: background-color 0.3s ease-in-out;

                            &:hover {
                                background-color: var(--td-theme-bg-color);

                                svg {
                                    fill: var(--td-white);
                                }
                            }
                        }
                    }
                }
            }

            &-bookings {
                margin-top: 60px;

                &-buttons {
                    display: flex;
                    align-items: center;
                    gap: 15px;
                    margin-bottom: 30px;
                }

                &-title {
                    border-bottom: 1px solid #E3E3E3;
                    margin-bottom: 30px;

                    h3 {
                        padding-bottom: 16px;
                    }
                }

                &-table {
                    tr {
                        th {
                            color: #191919;
                            font-size: 14px;

                            @include rtl{
                                &:first-child{
                                    text-align: right!important;
                                }
                                &:last-child{
                                    text-align: left!important;
                                }
                            }
                        }

                        td {
                            color: #666;
                            font-size: 14px;

                            &:first-child{
                                img{
                                    height: 50px;
                                    width: 50px;
                                    border-radius: 8px;
                                }
                            }

                            @include rtl{
                                &:first-child{
                                    text-align: right!important;
                                }
                                &:last-child{
                                    text-align: left!important;
                                }
                            }

                            &.amount {
                                color: #191919;
                                font-weight: 600;
                            }

                            &.thumb {
                                color: #191919;
                                font-weight: 600;
                                display: flex;
                                align-items: center;
                                gap: 8px;

                                img {
                                    width: 50px;
                                    height: 50px;
                                    border-radius: 8px;
                                }
                            }

                            &.status {
                                button {
                                    padding: 2px 10px;
                                    border-radius: 20px;

                                    &.success {
                                        background-color: rgba(5, 171, 80, 0.1);
                                        color: #05AB4F;
                                    }

                                    &.ongoing {
                                        color: #F7931A;
                                        background-color: rgba(247, 147, 26, 0.1);
                                    }
                                }
                            }
                        }
                    }
                }
            }

            &-profile {
                &-title {
                    border-bottom: 1px solid #E3E3E3;
                    margin-bottom: 30px;

                    h3 {
                        color: var(--td-theme-bg-color);
                        font-size: 20px;
                        font-weight: 600;
                        padding-bottom: 20px;
                    }
                }

                &-img {
                    margin-bottom: 20px;
                    p {
                        color: var(--td-theme-bg-color);
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 20px;
                        margin-bottom: 10px;

                        sup {
                            color: #EC0707;
                        }
                    }

                    &-upload {
                        width: 320px;
                        border-radius: 8px;
                        border: 1px dashed #FDD702;
                        background: rgba(253, 215, 2, 0.04);

                        &-2{
                            border: 1px dashed var(--td-theme-color-2);
                            background: rgba(4, 154, 71,0.04);
                        }

                        @media #{$xs} {
                            width: 270px;
                        }

                        &.dz-message {
                            padding: 0 !important;
                        }

                        &-text {
                            display: flex;
                            flex-direction: column;
                            align-items: center;

                            img {
                                margin-bottom: 12px;
                                width: 30px;
                            }

                            h5 {
                                color: var(--td-theme-bg-color);
                                font-size: 12px;
                                font-weight: 600;
                                line-height: 20px;
                            }
                        }
                    }
                }

                &-inputs {
                    &-btn {
                        margin-top: 30px;
                    }
                }
            }

            &-switchers {
                &-switch {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 30px;

                    @media #{$xs} {
                        margin-bottom: 20px;
                    }

                    &:last-child {
                        margin-bottom: 0px;
                    }

                    p {
                        color: var(--td-theme-bg-color);
                        font-size: 14px;
                        font-weight: 500;
                    }
                }
            }
        }
    }
}

.dropdown-icon.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

.overlay {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
    display: none;
}

.container-full {
    width: 100%;
}

.custom-table-width {
    min-width: 800px;
}

.thumb-color {
    color: #191919;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    display: inline-block;
    margin-inline-start: 5px;
}

.table-button{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}