
.top-bar {
    position: fixed;
    padding-top: 0.8em;
    padding-bottom: 0.8em;
    width: 100vw;
    z-index: 999;
    background-color: #F8F8F8;
}

.level-left,
.level-right,
.level-center {
    flex-basis: auto;
}

.level-center {
    align-self: center;
}

.level-left {
    align-items: center;
    width: auto;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    gap: 16px;
}

.level-right {
    align-items: center;
    width: 100%;
    display: flex;
    gap: 20px;
}

.level-item {
    align-items: center;
    display: flex;
    flex-basis: auto;
    justify-content: center;
}

.align-row {
    display: flex;
    flex-direction: row;
}

#navbar-wrapper {
    order: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    left: 0;
    top: 0;
    height: 55px;
    flex-grow: 1;
    pointer-events: none;
    user-select: none;
    position: relative;
    z-index: 0;
    box-sizing: border-box;
}

#master-wrapper.loading #navbar-wrapper {
    height: auto;
    background: #FAF9F5BB;
    justify-content: center;
}

#master-wrapper.loading #navbar-wrapper > * {
    display: none;
}

#master-wrapper #navbar-wrapper #spinner {
    display: none;
}

#master-wrapper.loading #navbar-wrapper ui-navbar {
    display: none !important;
}

#master-wrapper.loading #navbar-wrapper #spinner {
    display: block;

    position: absolute;
    top: calc(50vh - 20px);
    left: calc(50vw - 20px);
}

#master-wrapper.loading.sidebar-hidden #navbar-wrapper #spinner {
    display: block;
    position: absolute;
    top: calc(50vh - 20px);
    left: calc(50vw - 20px);
}

#master-wrapper.loading #navbar-wrapper #spinner:before {
    content: '';
    background: url('/static/images/spinner.svg') no-repeat fixed center, url("/static/app/images/spinner.svg") no-repeat fixed center;
    display: block;
    width: 40px;
    height: 40px;
    animation: infinite 1s linear spin;
    /* position: absolute; */
    /* margin: auto; */
}

#master-wrapper.loading #footer-wrapper {
    display: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#text-toolbar-container {
    opacity: 0;
    transition: opacity 0.4s;
    position: fixed;
    z-index: 9999;
}

#text-toolbar-container.text-toolbar-container-show {
    animation: fadeIn 0.15s forwards;
}

#text-toolbar-container.text-toolbar-container-hide {
    animation: fadeOut 0.15s forwards;
}

#text-toolbar-container.visible:not(.force-hide) {
    opacity: 1;
    pointer-events: all;
}

#text-toolbar {
    background: #FFFFFF;
    box-shadow: 0px 11px 20px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    padding-left: 5px;
    padding-right: 5px;
    align-items: center;
}

#text-toolbar .tb-button {
    font-family: Poppins, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    line-height: 16px;

    color: black;
    display: flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    padding: 9px;

    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

#text-toolbar .tb-button.format-strong {
    background-image: url('../../images/bold.svg');
}

#text-toolbar .tb-button.format-em {
    background-image: url('../../images/italic.svg');
}

#text-toolbar .tb-button.format-u {
    background-image: url('../../images/underline.svg');
    background-size: 22px;
    background-position: center 55%;
}

#text-toolbar .tb-button.format-quote {
    background-image: url('../../images/quote.svg');
}

#text-toolbar .tb-button.format-ul {
    background-image: url('../../images/unordered-list.svg');
}

#text-toolbar .tb-button.format-ol {
    background-image: url('../../images/ordered-list.svg');
}

#text-toolbar .tb-separator {
    display: flex;
    width: 1px;
    height: 42px;
    margin-right: 2px;
    margin-left: 2px;
    background-color: #DEDEDE;
}

#text-toolbar .tb-button:hover {
    background-color: #F8F8F8;
}

#text-toolbar .tb-button.active {
    background-color: #EBEBEB;
}

#empty-state-message {
    position: absolute;
    pointer-events: none;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#empty-state-message ui-button {

    font-size: 16px;
    font-weight: 700;
}