// components/blocks/ContextMenu.vue
.fm-context-menu {
    direction: ltr !important;
    text-align: left !important;
    position: absolute;
    z-index: 9997;
    background-color: $body-bg;
    box-shadow: 3px 2px 5px $gray-700;
    border-radius: 5px;

    .list-unstyled {
        margin-bottom: 0;
        border-bottom: 1px solid rgba($body-color, 0.125);
    }

    ul>li {
        padding: 0.4rem 1rem;
    }

    ul>li:not(.disabled) {
        cursor: pointer;

        &:hover {
            background-color: $gray-800;
            color: invert($color: $gray-800);
        }

        i {
            padding-right: 2rem;
        }
    }
}

// components/blocks/InfoBlock.vue
.fm-info-block {
    display: flex;
    margin-right: -15px;
    margin-left: -15px;
    padding-top: 0.2rem;
    padding-bottom: 0.4rem;

    .progress {
        margin-top: 0.3rem;
    }

    .text-right>span {
        padding-left: 0.5rem;
        cursor: pointer;
    }
}

// components/blocks/Navbar.vue
.fm-navbar {

    .btn-group {
        margin-right: 0.4rem;
    }
}

// components/blocks/Notification.vue
.fm-notification {
    position: absolute;
    right: 1rem;
    bottom: 0;
    z-index: 9999;
    width: 350px;
    display: block;
    transition: opacity .4s ease;
    overflow: auto;

    .fm-notification-item {
        padding: .75rem 1.25rem;
        margin-bottom: 1rem;
        border: 1px solid;
        border-radius: .25rem;
    }

    .notify-enter-active {
        transition: all .3s ease;
    }

    .notify-leave-active {
        transition: all .8s ease;
    }

    .notify-enter,
    .notify-leave-to {
        opacity: 0;
    }
}

// components/manager/Breadcrumb.vue
.fm-breadcrumb {
    .breadcrumb {
        flex-wrap: nowrap;
        padding: 0.2rem 0.3rem;
        margin-bottom: 0.5rem;

        &.active-manager {
            background-color: $gray-200;
        }

        .breadcrumb-item:not(.active):hover {
            cursor: pointer;
            font-weight: normal;
            color: $body-color;
        }
    }
}

// components/manager/DiskList.vue
.fm-disk-list {

    ul.list-inline {
        margin-bottom: 0.5rem;
    }

    .badge.badge-light {
        cursor: pointer;
    }
}

// components/manager/GridView.vue
.fm-grid {
    padding-top: 1rem;

    .fm-grid-item {
        position: relative;
        width: 125px;
        padding: 0.4rem;
        margin-bottom: 1rem;
        margin-right: 1rem;
        border-radius: 5px;

        &.active {
            background-color: $body-bg;
            box-shadow: 3px 2px 5px $gray-500;
        }

        &:not(.active):hover {
            background-color: $body-bg;
            box-shadow: 3px 2px 5px $gray-500;
        }

        .fm-item-icon {
            cursor: pointer;
        }

        .fm-item-icon>i {
            color: $gray-200;
        }

        .fm-item-info {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
}

// components/manager/Manager.vue
.fm-content {
    height: 100%;
    padding-left: 1rem;

    .fm-content-body {
        overflow: auto;
    }
}

// components/manager/TableView.vue
.fm-table {

    thead th {
        background: $body-bg;
        position: sticky;
        top: 0;
        z-index: 10;
        cursor: pointer;
        border-top: none;

        &:hover {
            background-color: $body-bg;
        }

        &>i {
            padding-left: 0.5rem;
        }
    }

    td {
        white-space: nowrap;
        overflow: hidden;
    }

    tr:hover {
        background-color: $body-bg;
    }

    .w-10 {
        width: 10%;
    }

    .w-65 {
        width: 65%;
    }

    .fm-content-item {
        cursor: pointer;
    }

    .text-hidden {
        color: $body-bg;
    }
}

// components/modals/additions/Cropper.vue
@import "~cropperjs/dist/cropper.css";

.fm-additions-cropper {
    overflow: hidden;

    &>.row {
        flex-wrap: nowrap;
    }

    .cropper-block {
        overflow: hidden;

        img {
            max-width: 100%;
        }
    }

    .col-sm-3 {
        overflow: auto;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    .cropper-preview {
        margin-bottom: 1rem;
        overflow: hidden;
        height: 200px;

        img {
            max-width: 100%;
        }
    }

    .cropper-data {
        padding-left: 1rem;
        padding-right: 1rem;

        &>.input-group {
            margin-bottom: 0.5rem;
        }

        .input-group-prepend .input-group-text {
            min-width: 4rem;
        }

        .input-group-append .input-group-text {
            min-width: 3rem;
        }
    }

    &>.d-flex {
        padding: 1rem;
        border-top: 1px solid $body-bg;
    }
}

// components/modals/additions/SelectedFileList.vue
.fm-additions-file-list {
    .far {
        padding-right: 0.5rem;
    }
}

// components/modals/views/AudioPlayer.vue
.fm-modal-audio-player {
    .fas.fa-play {
        color: $body-color;
        opacity: 0.1;
        cursor: pointer;

        &:hover {
            opacity: 0.5;
        }

        &.active {
            opacity: 1;
            color: deepskyblue;
        }
    }

    .fas.fa-pause {
        color: $body-color;
        opacity: 0.5;
        cursor: pointer;
    }
}

// components/modals/views/VideoPlayer.vue
.fm-modal-video-player {}

// components/modals/views/Clipboard.vue
.fm-modal-clipboard {

    .modal-body .far {
        padding-right: 0.5rem;
    }
}

// components/modals/views/Upload.vue
.fm-modal-upload {

    .fm-btn-wrapper {
        position: relative;
        overflow: hidden;
        padding-bottom: 6px;
        margin-bottom: 0.6rem;
    }

    .fm-btn-wrapper input[type=file] {
        font-size: 100px;
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        cursor: pointer;
    }

    .fm-upload-list .far {
        padding-right: 0.5rem;
    }

    .fm-upload-list .form-check-inline {
        margin-right: 0;
    }

    .fm-upload-info>.progress {
        margin-bottom: 1rem;
    }
}

// components/modals/views/Preview.vue
.fm-modal-preview {
    .modal-body {
        padding: 0;

        img {
            max-width: 100%;
        }
    }

    &>.d-flex {
        padding: 1rem;
        border-top: 1px solid $body-bg;
    }
}

// components/modals/views/Properties.vue
.fm-modal-properties .modal-body {
    .row {
        margin-bottom: 0.3rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;

        .fa-copy {
            padding-top: 0.2rem;
            display: none;
            cursor: pointer;
        }

        &:hover {
            background-color: $body-bg;

            & .fa-copy {
                display: block;
            }
        }
    }

    .col-2 {
        font-weight: bold;
    }

    .col-9 {
        word-wrap: break-word;
    }
}

// components/modals/views/TextEdit.vue
@import "~codemirror/lib/codemirror.css";
@import "~codemirror/theme/blackboard.css";

.fm-modal-text-edit {
    .modal-body {
        padding: 0;
    }
}


// components/modals/Modal.vue
.fm-modal {
    direction: ltr;
    text-align: left;
    position: absolute;
    z-index: 9998;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    display: block;
    transition: opacity 0.4s ease;
    overflow: auto;

    .modal-xl {
        max-width: 96%;
    }

    .modal-header .close {
        margin-left: auto;
        margin-right: 2px;
    }
}

.fm-modal-enter-active,
.fm-modal-leave-active {
    transition: opacity 0.5s;
}

.fm-modal-enter,
.fm-modal-leave-to {
    opacity: 0;
}


// components/tree/Branch.vue
.fm-tree-branch {
    display: table;
    width: 100%;
    padding-left: 1.4rem;

    li>p {
        margin-bottom: 0.1rem;
        padding: 0.4rem 0.4rem;
        white-space: nowrap;
        cursor: pointer;

        &:hover,
        &.selected {
            background-color: $body-bg;
        }
    }

    .fas.fa-minus {
        padding-left: 0.1rem;
        padding-right: 0.6rem;
    }

    .far {
        padding-right: 0.5rem;
    }
}

.fade-tree-enter-active,
.fade-tree-leave-active {
    transition: all 0.3s ease;
}

.fade-tree-enter,
.fade-tree-leave-to {
    transform: translateX(20px);
    opacity: 0;
}

// components/tree/FolderTree.vue
.fm-tree {
    overflow: auto;
    border-right: 1px solid #6d757d;

    &>.fm-folders-tree {
        padding-left: 0.2rem;
    }

    .fm-tree-disk {
        padding: 0.2rem 0.3rem;
        margin-bottom: 0.3rem;
        background-color: $body-bg;
    }

    .fm-tree-disk>i {
        padding-left: 0.2rem;
        padding-right: 0.5rem;
    }
}

//FileManager.vue
@import "~plyr/src/sass/plyr.scss";

.fm {
    position: relative;
    height: 100%;
    padding: 1rem 1rem 0;
    background-color: $body-bg;

    &:-moz-full-screen {
        background-color: $body-bg;
    }

    &:-webkit-full-screen {
        background-color: $body-bg;
    }

    &:fullscreen {
        background-color: $body-bg;
    }

    .fm-body {
        display: flex;
        height: 100%;
        margin-right: -15px;
        margin-left: -15px;
        position: relative;
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-top: 1px solid #6d757d;
        border-bottom: 1px solid #6d757d;
    }

    .unselectable {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

.fm-error {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
}

.fm-danger {
    color: #dc3545;
    background-color: white;
    border-color: #dc3545;
}

.fm-warning {
    color: #ffc107;
    background-color: white;
    border-color: #ffc107;
}

.fm-success {
    color: #28a745;
    background-color: white;
    border-color: #28a745;
}

.fm-info {
    color: #17a2b8;
    background-color: white;
    border-color: #17a2b8;
}

.fm.fm-full-screen {
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}