@use 'dropzone.min.css';
@use 'basic.min.css';
@import '../Variable.scss';

.FileManager {
    .modal-content {
        height: 100%;

        .modal-header {
            background: $Background-1;

            ul {
                li {
                    button {
                        border-radius: 2px;
                        padding: 6px 20px;
                        font-size: 12px;
                        color: $ColorText-2;
                    }

                    .active {
                        background: $Background-5;
                    }
                }
            }
        }

        .modal-body {
            .Upload {
                position: absolute;
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
                height: 100%;
                border: none;

                .dz-message {
                    &:before {
                        content: "\f2bf";
                        display: inline-block;
                        font-family: bootstrap-icons !important;
                        font-style: normal;
                        font-weight: 400 !important;
                        font-variant: normal;
                        text-transform: none;
                        line-height: 1;
                        vertical-align: -0.125em;
                        -webkit-font-smoothing: antialiased;
                        -moz-osx-font-smoothing: grayscale;
                        font-size: 80px;
                        display: block;
                        color: $ColorText-6;
                    }

                    span {
                        color: $ColorText-7;
                        margin-top: 10px;
                        display: block;
                    }
                }

                .dz-error-message {
                    span {
                        color: $ColorText-2;
                    }
                }

                .dz-error {
                    .dz-image {
                        background: $Background-5;
                    }



                    .dz-details {
                        height: 100%;

                        .dz-size {
                            display: none;
                        }

                        .dz-filename {
                            position: absolute;
                            right: 0;
                            left: 0;
                            bottom: 60px;



                            span {
                                background: transparent;
                                color: $ColorText-2;
                                font-size: 10px;
                                border: none !important;
                            }
                        }
                    }

                    .dz-success-mark {
                        display: none;
                    }

                    .dz-error-mark {
                        padding-top: 10px;
                    }

                    .dz-error-message {
                        position: initial;
                        padding: 0 5px;
                        width: 100%;
                        border-radius: 0;
                        margin-top: 10px;
                        opacity: 1;
                        background: transparent;
                        line-height: 18px;
                        text-align: center;
                        font-weight: 500;

                        span {
                            color: $ColorText-6;
                        }

                        &:after {
                            border: none;
                        }
                    }
                }
            }

            .TFile {

                .ItemFile {
                    height: auto;
                    width: 100%;
                    cursor: pointer;
                    transition: transform 0.2s;
                }

                .activFile {
                    position: relative;

                    &:before {
                        content: "\f26a";
                        display: inline-block;
                        font-family: bootstrap-icons !important;
                        font-style: normal;
                        font-weight: 400 !important;
                        font-variant: normal;
                        text-transform: none;
                        line-height: 1;
                        vertical-align: -0.125em;
                        -webkit-font-smoothing: antialiased;
                        -moz-osx-font-smoothing: grayscale;
                        position: absolute;
                        top: 5px;
                        right: 5px;
                        font-size: 20px;
                        color: #198754;
                        z-index: 9;
                    }

                    img {
                        transform: scale(0.6);
                        box-shadow: rgb(196 196 196) 0px 5px 15px;
                        transition: transform 0.1s;
                    }
                }

                .AjaxNextFile {
                    margin: 10px auto;
                    display: block;
                    padding: 8px 25px 10px;
                    border: none;
                    font-size: 13px;
                    background: $Background-1;
                    color: $ColorText-2;
                    border-radius: 5px;

                    &:hover {
                        background: $Background-5;
                    }
                }
            }

            .TGallery {

                .ItemGallery {
                    height: auto;
                    width: 100%;
                    cursor: pointer;
                    transition: transform 0.2s;
                }

                .activGallery {
                    position: relative;

                    &:before {
                        content: "\f26a";
                        display: inline-block;
                        font-family: bootstrap-icons !important;
                        font-style: normal;
                        font-weight: 400 !important;
                        font-variant: normal;
                        text-transform: none;
                        line-height: 1;
                        vertical-align: -0.125em;
                        -webkit-font-smoothing: antialiased;
                        -moz-osx-font-smoothing: grayscale;
                        position: absolute;
                        top: 5px;
                        right: 5px;
                        font-size: 20px;
                        color: #198754;
                        z-index: 9;
                    }

                    img {
                        transform: scale(0.6);
                        box-shadow: rgb(196 196 196) 0px 5px 15px;
                        transition: transform 0.1s;
                    }
                }

                .AjaxNextFile {
                    margin: 10px auto;
                    display: block;
                    padding: 8px 25px 10px;
                    border: none;
                    font-size: 13px;
                    background: $Background-1;
                    color: $ColorText-2;
                    border-radius: 5px;

                    &:hover {
                        background: $Background-5;
                    }
                }
            }

            .div-Tpagination-btn-files {
                text-align: center;
                padding-bottom: 5px;
            }

            .div-Tpagination-btn-gallery {
                text-align: center;
                padding-bottom: 5px;
            }

            .Tpagination {
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                top: 0;
                right: 0;
                height: auto;
                z-index: 99999999;
                transition: opacity 0.75s, visibility 0.75s;
                background: $Background-4;
                padding: 5px;

                &:after {
                    content: "";
                    width: 35px;
                    height: 35px;
                    border: solid 8px $Border-Color-1;
                    border-top-color: $Border-Color-3;
                    border-radius: 50%;
                    animation: loding 0.75s ease infinite;
                }
            }

            .TLoader {
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
                min-height: 200px;
                z-index: 99999999;
                transition: opacity 0.75s, visibility 0.75s;
                background: rgba(255,255,255,1);

                &:after {
                    content: "";
                    width: 35px;
                    height: 35px;
                    border: solid 8px $Border-Color-1;
                    border-top-color: $Border-Color-3;
                    border-radius: 50%;
                    animation: loding 0.75s ease infinite;
                    position: fixed;
                    top: 50%;
                }
            }
        }

        .number-pagination {
            position: absolute;
            left: 10px;
            color: $ColorText-3;
        }

        .TFile-Update {
            min-height: 250px;
            background: $Background-2;
            padding-bottom: 10px;

            img {
                width: 100%;
            }

            #fileProgress {
                position: absolute;
                bottom: 10px;
                right: 10px;
                left: 10px;
                background: transparent;
                height: 10px;

                .progress-bar {
                    background-color: $Background-5;
                }
            }

            .MarkFormat {
                background: $Background-6;
                color: $ColorText-4;
                width: 40px;
                height: 40px;
                border-radius: 100%;
                text-align: center;
                position: absolute;
                top: 10px;
                left: 10px;
                line-height: 39px;
            }

            .MyInput {
                padding: 10px;

                input {
                    background: $Background-4;
                    color: $ColorText-1;
                    border: solid 1px #c6c6c6;
                    border-radius: 0;
                    padding: 10px;
                    font-size: 13px;
                    font-weight: 400;
                    width: 100%;
                    box-sizing: border-box;
                    margin-bottom: 10px;
                }

                textarea {
                    background: $Background-4;
                    color: $ColorText-1;
                    border: solid 1px #c6c6c6;
                    border-radius: 0;
                    padding: 10px;
                    font-size: 13px;
                    font-weight: 400;
                    width: 100%;
                    box-sizing: border-box;
                    margin-bottom: 10px;
                }

                label {
                    color: #5f5f5f;
                    font-size: 13px;
                    font-weight: 400;
                    margin: 0 3px 3px 0;
                    white-space: nowrap;
                }

                button {
                    border: none !important;
                    width: 100%;
                    margin-top: 10px;
                    border-radius: 3px;
                    padding: 8px;
                    font-size: 12px;
                }
            }
        }
        .TGallery-Create {
            background: $Background-2;

            label {
                color: #5f5f5f;
                font-size: 13px;
                font-weight: 400;
                margin: 0 3px 3px 0;
                white-space: nowrap;
            }

            button {
                border: none !important;
                width: 100%;
                margin-top: 10px;
                border-radius: 3px;
                padding: 8px;
                font-size: 12px;
            }

            select {
                background: $Background-4;
                color: $ColorText-1;
                border: solid 1px #c6c6c6;
                border-radius: 0;
                padding: 10px;
                font-size: 13px;
                font-weight: 400;
                width: 100%;
                box-sizing: border-box;
                margin-bottom: 10px;
            }

            .PreView-Gallery {
                padding: 20px 10px;
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 5px;
                flex-flow: wrap;

                .Item-PreView-Gallery {
                    width: 30%;
                    position: relative;

                    img {
                        width: 100%;
                        cursor: pointer;
                        position: relative;
                    }
                }
            }
        }
    }
}
