/*!
 * bootstrap-fileinput v5.5.4
 * http://plugins.krajee.com/file-input
 *
 * Krajee Explorer Font Awesome 6.x theme style for bootstrap-fileinput. Load this theme file after loading
 * `fileinput.css`.
 *
 * Author: Kartik Visweswaran
 * Copyright: 2014 - 2024, Kartik Visweswaran, Krajee.com
 *
 * Licensed under the BSD-3-Clause
 * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
 */
//colors
$boston-blue: #428bca !default;
$alto: #ddd !default;
$tapa: #777 !default;
$mystic: #e1edf7 !default;
$perano: #a1abff !default;
$white-smoke: #f5f5f5 !default;

//fonts
$font: Menlo, Monaco, Consolas, "Courier New", monospace !default;

//standard measures
$pad: 5px !default;

//operations
@function multiply($pixels, $multiplier) {
    @return $pixels * $multiplier;
}

.theme-explorer-fa6 {
    .file-preview-frame {
        border: multiply($pad, 0.2) solid $alto;
        margin: multiply($pad, 0.4) 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        samp {
            font-size: 0.9rem;
        }
    }

    .file-actions {
        text-align: center;
    }

    .file-upload-indicator,
    .file-drag-handle {
        text-align: center;
        position: absolute;
        display: inline-block;
        bottom: multiply($pad, 1.6);
        right: multiply($pad, 0.8);
        width: multiply($pad, 3.2);
        height: multiply($pad, 3.2);
        font-size: multiply($pad, 3.2);
    }

    .explorer-frame {
        .kv-file-content {
            width: multiply($pad, 32);
            height: multiply($pad, 16);
            padding: $pad;
            text-align: left;
        }
    }

    .file-thumb-progress {
        .progress {
            display: block;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            margin-top: 5px;
        }
    }

    .explorer-caption {
        display: block;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        padding: 5px;
        color: $tapa;
    }

    .file-footer-buttons {
        padding: 5px;
        text-align: right;
    }

    .kvsortable-ghost {
        opacity: 0.6;
        background: $mystic;
        border: multiply($pad, 0.4) solid $perano;
    }

    .file-preview {
        .table {
            margin: 0;
        }
    }

    .file-error-message {
        ul {
            padding: 5px 0 0 20px;
        }
    }

    .file-details-cell {
        width: 60%;
        font-size: 0.95rem;
        text-align: left;
        margin-right: auto;
    }

    .file-actions-cell {
        position: relative;
        height: multiply($pad, 16);
        width: multiply($pad, 40);
    }
}

.explorer-frame {
    .file-preview-other {
        text-align: center;
    }

    .file-preview-text {
        display: inline-block;
        color: $boston-blue;
        border: 1px solid $alto;
        font-family: $font;
        outline: none;
        padding: multiply($pad, 1.6);
        resize: none;
    }

    .file-preview-html {
        display: inline-block;
        border: 1px solid $alto;
        padding: multiply($pad, 1.6);
        overflow: auto;
    }

    .file-other-icon {
        font-size: 2.6em;
    }

    &:not(.kv-zoom-body):hover {
        background-color: $white-smoke;
    }
}

.file-zoom-dialog {
    .explorer-frame {
        .file-other-icon {
            //noinspection CssOverwrittenProperties
            font-size: 22em;
            //noinspection CssOverwrittenProperties
            font-size: 50vmin;
        }
    }
}

@media only screen and (max-width: 1249px) {
    .theme-explorer-fa6 {
        .file-preview-frame {
            .file-details-cell {
                width: 40%;
            }
        }
    }
}

@media only screen and (max-width: 1023px) {
    .theme-explorer-fa6 {
        .file-preview-frame {
            .file-details-cell {
                width: 30%;
            }
        }
    }
}

@media only screen and (max-width: 767px) {
    .theme-explorer-fa6 {
        .file-preview-frame {
            .file-details-cell {
                width: multiply($pad, 40);
            }
        }
    }
}

@media only screen and (max-width: 575px) {
    .theme-explorer-fa6 {
        .file-preview-frame {
            flex-direction: column;

            .kv-file-content {
                width: auto;
                text-align: center;
            }
        }

        .file-details-cell {
            width: multiply($pad, 20);
            text-align: center;
            margin-right: 0;
        }

        .file-actions-cell {
            width: 100%;
            height: auto;
        }

        .file-footer-buttons {
            text-align: left;
        }
    }
}
