/* begin: media modal */
.media-modal {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0.5rem;

    .capital-label {
        font-size: 0.88rem;
        font-weight: 600;
        text-align: left;
        width: 100%;
        opacity: 0.85;
        margin-bottom: 1rem;
    }

    .media-modal-left-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem;

        .media-modal-current-preview {
            display: flex;
            align-items: center;
            min-height: 140px;
            max-height: 250px;
            font-size: 1.5rem;
            margin-bottom: 1.25rem;
        }

        .media-modal-current-preview img {
            border-radius: 6px;
        }

        .media-modal-current-details {
            width: 100%;
            padding: 5px;
            border-radius: 6px;
            border: 1px solid #e1e1e1;
            background: #f2f2f2;
            font-size: 0.8rem;
            margin-bottom: 1.25rem;

            table {
                table-layout: fixed;
                width: 100%;

                th,
                td {
                    vertical-align: top;
                    padding: 2px 4px;
                    word-wrap:break-word;
                }

                th {
                    text-align: end;
                }

                td {
                    width: 70%;
                }
            }
        }
    }

    .media-modal-right-column {
        height: 100%;
        border: 1px solid #e1e1e1;
        border-radius: 0.5rem;
        padding: 1.5rem;

        .upload-file-button {
            border: 1px dashed #ccc;
            border-radius: 8px;
            padding: 1rem;
        }

        .media-modal-files-container {
            display: flex;
            flex-wrap: wrap;
            max-height: 400px;
            overflow-y: scroll;

            .media-modal-file {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
                font-size: 12px;
                flex: 0 0 calc(100% / 5);
                border-radius: 6px;

                &:hover {
                    background: #e6e9ea;
                }
            }

            .media-modal-file-preview-wrapper {
                width: 90px;
                height: 90px;
                display: flex;
                align-items: end;
                justify-content: center;
                margin: 5px;

                img {
                    max-width: 100%;
                    max-height: 100%;
                    border: 1px solid #7f7f7f3b;
                }

                i {
                    width: 100%;
                    height: 100%;
                    align-content: center;
                    border: 1px solid #7f7f7f3b;
                }
            }

            .media-modal-file-label-wrapper {
                margin-bottom: 5px;
                word-wrap: anywhere;
            }
        }
    }
}
/* end: media modal */


/* begin: navbar */
nav.navbar .navbar-nav .nav-item .nav-icon {
    display: flex;

    > i.fab,
    > i.far,
    > i.fas,
    > i.fad,
    > i.fat,
    > i.fal {
        line-height: 2.5rem;
        font-size: 1.125rem;
    }

    > .indicator {
        display: flex;
        height: 16px;
        top: 12px;
        width: 16px;
        color: #fff;
        font-size: 10px;
        justify-content: center;
        align-items: center;
        font-weight: bold;
    }
}
/* end: navbar */


/* begin: searchbar */
.nav-search-bar {
    height: 1.75rem;
    line-height: 1.75rem;
    font-size: 1rem;
    color: #5d596c;

    .search-bar-icon {
        width: 1.75rem;
        line-height: 1.75rem;
        border-radius: 50%;
        text-align: center;
        transform: scale(1.3);
        margin-right: 0.4rem;
        background: rgba(50, 71, 92, 0);
        transition: background-color 0.15s;
        cursor: pointer;

        &:hover {
            background: rgba(50, 71, 92, 0.1);
        }

        &:active {
            background: rgba(50, 71, 92, 0.2);
        }
    }

    .search-bar-label {
        line-height: 1.75rem;
        color: rgb(165, 163, 174);
        text-shadow: 0 0 1px rgb(165, 163, 174, 0.25);
        cursor: pointer;
        user-select: none;
    }

    .search-popup-backdrop {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: rgba(50, 71, 92, 0.5);
        /*background: rgba(18, 20, 33, 0.6);*/
        backdrop-filter: blur(3px);
        z-index: 4;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s;

        &.active {
            opacity: 1;
            pointer-events: initial;
        }
    }

    .search-popup {
        width: 600px;

        .card {
            overflow: clip;
            margin-bottom: 10vh;
        }

        .search-input {
            border: 0;
            border-bottom: 1px solid #ccc;
            border-radius: 0;
            padding: 1rem 1rem 1rem 3rem;
            outline: 0;
            box-shadow: unset;
        }

        .search-input-before {
            position: absolute;
            left: 18px;
            top: 12px;
            font-size: 1.25rem;
            cursor: pointer;
        }

        .search-input-after {
            position: absolute;
            right: 18px;
            top: 12px;
            opacity: 0.75;
            cursor: pointer;
        }

        .search-results {
            height: 400px;
            padding: 0 0.5rem 0.5rem 0.5rem;
            overflow: scroll;

            h5 {
                opacity: 0.75;
                padding: 0 0.8rem;
                margin: 1rem 0 0.25rem 0;
                font-size: 1rem;
                font-variant: all-small-caps;
                letter-spacing: 0.1rem;
                font-weight: lighter;
            }

            .no-results {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                text-align: center;
                height: 100%;

                i {
                    font-size: 4rem;
                }
            }

            .results-entry {
                display: block;
                color: #343a40;
                font-weight: 500;
                text-decoration: none;
                padding: .4rem 1rem;
                border-radius: 0.5rem;

                &:hover {
                    background: rgba(233,236,239,.85);
                }

                i {
                    margin-right: 0.5rem;
                }

                .subtitle {
                    float: right;
                    font-weight: lighter;
                    opacity: 0.75;
                    font-size: 0.8rem;
                }
            }
        }
    }
}
/* end: searchbar */

