html,
body {
    margin: 0;
    background: #222;
    color: #eee;
    font-family: 'Montserrat', 'Verdana';
    height: 100%;

}

* {
    outline: none;
    transition: .2s
}

.container {
    height: 100%;
    width: 100%;

    h2 {
        text-align: center;
        margin-top: -30px;
    }

    .sftp_list {
        display: flex;
        flex-direction: column;
        height: 100%;
        border-top: 1px solid #333;

        &.loading {
            opacity: .5;

            & * {
                pointer-events: none;
            }
        }

        .item {
            border-bottom: 1px solid #333;
            cursor: pointer;
            padding: 24px 12px;
            display: flex;
            align-items: center;
            justify-content: start;

            .desc {
                display: flex;
                flex-direction: column;
                margin-right: auto;

                b {}

                span {
                    font-size: 10px;
                    color: #777;

                }
            }


            .action_i {

                background: #fff;
                fill: #45f;
                border-radius: 60px;
                width: 24px;
                height: 24px;
                padding: 3px;
                pointer-events: all;
                cursor: pointer;
                margin: 0px;
                margin-left: 6px;

                &:hover {
                    background: #45f;
                    fill: #fff;
                }
            }

            & * {
                pointer-events: none;
            }

            &:hover {
                background: #333;
            }
        }
    }

    .add_sftp_btn {
        position: fixed;
        right: 24px;
        bottom: 24px;
        background: #45f;
        color: #fff;
        font-family: inherit;
        border-radius: 60px;
        border: none;
        font-size: 40px;
        width: 54px;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;

        &:hover {
            background: #56f
        }
    }
}

#add_sftp_ui {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .item {
        display: flex;
        flex-direction: column;
        margin-bottom: 24px;
        width: 300px;
        position: relative;

        label {
            margin-bottom: 3px;
            text-align: center;
            background: #45f;
            width: max-content;
            border-radius: 60px;
            padding: 0 6px;
            margin-left: 6px;
            position: absolute;
            top: -12px;
        }

        input {
            background: #333;
            color: #eee;
            border: 0;
            border-radius: 12px;
            padding: 6px 12px;
            height: 30px;
            font-family: inherit;
            font-size: 18px;
            font-weight: 600;
            color: #aaa;
        }

        &.add_by_url {
            display: flex;
            flex-direction: row;

            button {
                background: #45f;
                color: #fff;
                border-radius: 12px;
                border: 0;
                margin-left: 6px;
                min-width: 60px;
                position: absolute;
                right: -60px;
                height: 42px;
            }
        }
    }

    .buttons {
        width: max-content;
        display: flex;
        flex-direction: row;
        width: 300px;

        button {
            background: #45f;
            color: #fffa;
            border-radius: 24px;
            border: 0;
            width: 100%;
            padding: 12px 18px;
            margin: 6px;
            font-size: 18px;
            cursor: pointer;
            color: #fff;
            
            svg{
                fill:#fffa;
            }
            
            &.cancelar {
                background: #f81;
            }
            
            &.excluir{
                background: #a22;
                min-width: 48px;
                display: flex;
                padding: 0;
                max-width: 48px;
                align-items: center;
                justify-content: center;
            }

            &:hover {
                filter: brightness(1.25)
            }
        }
    }
}


.container {
    padding-top: 49px;
    .path {
        z-index: 9;
        display: flex;
        width: 100%;
        position: fixed;
        height: 60px;
        top: 0;

        .goto,
        .menu_top {
            display: flex;

            & * {
                pointer-events: none;
            }

            cursor: pointer;

            &:hover {
                svg {
                    fill: #bbb
                }
            }
        }

        .menu_top {
            &.active {
                svg {
                    background: #444;
                }
            }
        }

        svg {
            background: #333;
            padding: 12px 12px;
            fill: #888;
            cursor: pointer;

            &:hover {
                fill: #bbb
            }
        }

        input {
            width: calc(100% - 24px);
            padding: 6px 12px;
            border: 0;
            background: #333;
            color: #fffa;
            padding-left: 0;
            height: calc(100% - 24px);
        }
    }

    .files_folders {
        padding-bottom: 200px;

        &.loading {
            opacity: .5;

            & * {
                pointer-events: none;
            }
        }

        .item {
            & * {
                pointer-events: none;
            }

            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: start;
            border-bottom:1px solid #333;
            padding: 6px 12px;

            svg {
                margin-right: 6px;
            }

            span {
                white-space: wrap;
                word-break: break-all;
            }

            &:hover {
                background: #333
            }
        }

        .file {
            svg {
                fill: #45f
            }
        }

        .dir {
            svg {
                fill: #fa4
            }
        }

        .options {
            margin-left: auto;
            position: relative;

            .menu.option {
                pointer-events: all;

                .menu_ff_list {
                    position: absolute;
                    right: 24px;
                    top: 42px;
                    background: #444;
                    padding: 0px 0px;
                    border-radius: 6px 0px 12px 12px;

                    .item {
                        pointer-events: all;
                        background: #555;
                        border-radius: 6px;
                        margin: 6px;
                        padding: 6px 12px;
                        cursor: pointer;

                        svg {
                            fill: #fff7;
                            width: 18px;
                            height: 18px;
                            margin-right: 9px;
                        }

                        &.fechar {
                            background: #a22
                        }

                        &:hover {
                            background: #45f
                        }
                    }
                }
            }
        }
    }
}


#view_txt {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    flex-direction: column;

    span {
        display: flex;
        text-align: center;
        justify-content: center;
        margin: 12px;
    }

    textarea {
        height: 100%;
        border-radius: 12px;
        border: 1px solid #444;
        ;
        background: #333;
        color: #eee;
        margin: 6px;
        padding: 12px 6px;
        margin-bottom: 0;
        resize: none;
    }

    .buttons {
        display: flex;
        align-items: center;
        justify-content: end;

        button {
            background: #fa4;
            color: #fff;
            border: 0;
            border-radius: 12px;
            padding: 6px 12px;
            font-size: 18px;
            font-family: inherit;
            margin: 12px;
            cursor: pointer;

            &.salvar_arquivo_txt {
                background: #45f;

            }

            &:hover {
                filter: brightness(1.25)
            }
        }
    }
}

.menu_top_list {
    position: fixed;
    right: 24px;
    top: 42px;
    background: #444;
    padding: 0px 0px;
    border-radius: 6px 0px 12px 12px;
    z-index: 10;

    .item {
        background: #555;
        border-radius: 6px;
        margin: 6px;
        padding: 6px 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: start;
        color: #fff;

        &.fechar {
            background: #a22
        }

        svg {
            fill: #fff7;
            width: 18px;
            height: 18px;
            margin-right: 9px;
        }
        
        &.favorito{
            background: #fa5;
        }

        &:hover {
            background: #45f
        }
    }
}

#view_txt_monaco {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    flex-direction: column;
    z-index: 11;

    #editor {
        border-radius: 12px;
        overflow: hidden;
        border: 2px solid #555 !important;
        max-width: calc(100% - 12px);
        margin: auto;
        height: 100%!important;
    }

    &>span {
        display: flex;
        text-align: center;
        justify-content: center;
        margin: 12px;
    }

    &>.buttons {
        display: flex;
        align-items: center;
        justify-content: end;

        &>button {
            background: #fa4;
            color: #fff;
            border: 0;
            border-radius: 12px;
            padding: 6px 12px;
            font-size: 18px;
            font-family: inherit;
            margin: 12px;
            cursor: pointer;

            &.salvar_arquivo_txt {
                background: #45f;

            }

            &:hover {
                filter: brightness(1.25)
            }
        }
    }
}


#url_online {
    position: fixed;
    left: 0;
    top: 0;
    width: calc(100% - 0px);
    height: calc(100% - 0px);
    display: flex;
    flex-direction: column;
    z-index: 15;

    iframe {
        height: 100%;
        width: 100%;
        border: 0;
        border: 2px solid #45f;
        width: calc(100% - 4px);
        background: #123;
    }

    .bot_menu {
        background: #222;
        border-top: 1px solid #444;
        display: flex;
        height: 36px;

        input {
            height: calc(100% - 0px);
            margin-right: auto;
            border-radius: 0;
            border: 0;
            width: 100%;
            background: #444;
            color: #fffa;
            padding: 0 12px;

        }

        button {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 36px;
            border: 0;
            border-left: 1px solid #555;
            background: #333;
            color: #fffa;
            fill: currentColor;
            cursor: pointer;

            &:hover {
                filter: brightness(1.25)
            }
        }
    }
}