@use 'globals' as *;

.list-container {
    max-width: 1570px;
}

.modal {
    &-content {

    }

    &-header {
        & .modal-title {
            margin-bottom: 0;
            line-height: 1.5;
            font-size: 24px;
            font-family: $open;
            font-weight: 300;
            color: #9C9EB2;
        }

        & .modal-header .btn-close {
            box-shadow: 0 0 5px;
            position: relative;
            top: -18px;
            right: -8px;
        }
    }

    &-body {
        &.delete {
            & h6 {
                font-weight: bold;
            }
        }

        & label {
            font-size: 16px;
            line-height: 22px;
            font-weight: bold;
            font-family: $open;
            color: $darkblue;
            width: 100%;
            max-width: 50%;

            & input {
                &[type="text"] {
                    font-size: 14px;
                    line-height: 18px;
                    font-family: $open;
                    font-weight: 500;
                    padding: 10px 20px;
                    border: thin solid #ADC2FF;
                    border-radius: 7px;
                    margin-top: 5px;
                    width: 100%;
                }
            }
        }
    }

    &-footer {
        & input {
            &.btn {
                max-height: 40px;
            }
        }
    }
}

.eligible-title {
    text-align: center;
    font-size: 21px;
    font-weight: 600;
    margin-top: 2rem;
}

.switch {
    display: flex;

    &.final {
        justify-content: center;
        margin: 2rem 0;
        font-size: 19px;
    }

    &-value {
        position: relative;
        padding: 6px 17px;
        background-color: #b4b4b4;
        color: $white;

        &.active {
            &.true {
                background-color: #6ac96f;
            }

            &.false {
                background-color: #da3f3f;
            }
        }

        & input[type="radio"] {
            appearance: none;
            -webkit-appearance: none;
            position: absolute;
            left: 0;
            top: 0;
            background-color: transparent;
            width: 100%;
            height: 100%;
            z-index: 99;
            cursor: pointer;
        }

        &:first-child {
            border-radius: 10px 0 0 10px;
            border-right: thin solid;
        }

        &:last-child {
            border-radius: 0 10px 10px 0;
        }
    }
}

.status-info {
    font-size: 13px;
    & i {
        font-size: 14px;
        &.check-double {
            color: #238d30;
        }
        &.check {
            color: #5aa5b0;
        }
        &.ban {
            color: #ac523e;
        }
        &.window-close {
            color: #ad0000;
        }
    }
}

.elements-list {
    margin-top: 20px;

    &.big {
        max-width: inherit;
    }

    &.sortable {
        & .drag-element {
            &:hover {
                border-color: #41cb6b !important;
            }
        }
        & .list-box--inner---list {



            &----score--item {
                font-weight: bold;
                font-size: 14px;
            }

            &----ranking-num--item {
                font-weight: bold;
                font-size: 17px;
                color: #048d30
            }

            &----comments {
                & a {
                    color: #5aa5b0;
                    font-size: 19px;
                }
            }

            &----status {
                &--item {
                    & i {
                        font-size: 14px;
                        &.check-double {
                            color: #238d30;
                        }
                        &.check {
                            color: #5aa5b0;
                        }
                        &.ban {
                            color: #ac523e;
                        }
                        &.window-close {
                            color: #ad0000;
                        }
                    }
                }
            }

            & li {
                position: relative;

                &.not-sortable {
                    cursor: auto;
                }

                cursor: grab;

                & .comments-container {
                    position: absolute;
                    visibility: hidden;
                    left: -1px;
                    background-color: rgb(219 242 233);
                    border: thin solid #41cb6b;
                    width: calc(100% + 2px);
                    z-index: 99;
                    border-top: none;
                    border-radius: 0 0 15px 15px;
                    padding: 20px 35px;
                    font-size: 14px;
                    color: #8d8d8d;
                    font-style: italic;

                    &.active {
                        visibility: visible;
                    }
                }
            }
        }
    }

    &--item {
        background-color: $white;
        padding: 22px 30px;
        margin-bottom: 10px;
        border: thin solid #E8E8ED;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: border-color 0.25s linear;
        width: 99%;
        margin-left: 0.5%;
        position: relative;

        &:hover {
            border-color: #3761EE;
            transition: border-color 0.25s linear;

            & .elements-list--item---hover-indicator {
                color: #3761EE;
                transition: color 0.25s linear;
            }

            & .comments-container {
                border-color: #3761EE;
            }
        }

        &-add {
            padding: 22px 30px;
            margin-bottom: 10px;
            border: 2px dashed #B4C4F9;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color 0.25s linear;

            &:hover {
                border-color: #3761EE;
                transition: border-color 0.25s linear;

                & .inner {
                    color: #3761EE;
                    transition: color 0.25s linear;
                }
            }

            & .inner {
                color: #B4C4F9;
                font-size: 18px;
                line-height: 22px;
                font-family: $open;
                font-weight: bold;
                display: flex;
                align-items: center;
                gap: 15px;
                transition: color 0.25s linear;

                & i {
                    font-size: 32px;
                    line-height: 41px;
                }
            }
        }

        &---hover-indicator {
            flex: 0 0 auto;
            font-size: 24px;
            color: #B5C5F7;
            transition: color 0.25s linear;
        }

        &---title {
            flex: 1 1 200px;
            padding: 0 10px;
            font-size: 16px;
            line-height: 25px;
            font-family: $open;
            font-weight: bold;
            color: $darkblue;

            & span {
                color: $darkblue;
                font-weight: normal;
                font-size: 13px;
                line-height: 23px;
                font-family: $open;
            }

            & a {
                color: $darkblue;
                text-decoration: none;
            }
        }

        &---buttons-list {
            flex: 0 0 190px;

            & .switch {
                display: flex;

                &-value {
                    position: relative;
                    padding: 6px 17px;
                    background-color: #b4b4b4;
                    color: $white;

                    &.active {
                        &.true {
                            background-color: #6ac96f;
                        }

                        &.false {
                            background-color: #da3f3f;
                        }
                    }

                    & input[type="radio"] {
                        appearance: none;
                        -webkit-appearance: none;
                        position: absolute;
                        left: 0;
                        top: 0;
                        background-color: transparent;
                        width: 100%;
                        height: 100%;
                        z-index: 99;
                        cursor: pointer;
                    }

                    &:first-child {
                        border-radius: 10px 0 0 10px;
                        border-right: thin solid;
                    }

                    &:last-child {
                        border-radius: 0 10px 10px 0;
                    }
                }
            }

            & .final-value {
                text-align: center;
                width: 110px;
                font-weight: bold;

                &.positive {
                    color: #6ac96f;
                }

                &.negative {
                    color: #da3f3f;
                }
            }

            & ul {
                list-style: none;
                display: flex;
                margin: 0;
                padding: 0;
                justify-content: flex-end;
                gap: 22px;

                & li {
                    height: 36px;
                }

            }


        }


    }

    & .selectRole {
        padding-left: 25px;
        & ul {
            list-style: none;
            display: flex;
            gap: 20px;
            padding: 0;
            & li {
                cursor: pointer;
                &.active {
                    font-weight: bold;
                }
            }
        }
    }

    & .users-list {
        display: none;
        &.active {
            display: block;
        }
        & h4 {
            font-size: 20px;
            margin-left: 12px;
            padding: 10px 0;
            border-bottom: thin solid #ccc;
            margin-bottom: 20px;
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            & ul {
                display: flex;
                padding: 0;
                gap: 20px;
            }
        }
    }

}

