:root {
    --color-primary: #154EF2;
}

.#{$prefix}toolbar {
    padding-top: 6px;
    padding-bottom: 6px;
    background-color: white;
    box-shadow: inset 0 -1px 4px #00000040;
    height: 46px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    &-container {
        padding-left: 1rem;
        padding-right: 1rem;
        display: flex;
        justify-content: space-between;
    }

    &-start {
        display: flex;
        gap: 20px;
        min-width: 200px;
    }

    &-center {
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    &-end {
        display: flex;
        gap: 20px;
        min-width: 200px;
        justify-content: end;
    }

    &-button {
        height: 34px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        cursor: pointer;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 0.25rem;
        border: none;
        outline: none;
    }

    &-button-outline {
        border: 1px solid var(--color-primary);
        color: var(--color-primary);
        background-color: white;
    }

    &-button-text {
        white-space: nowrap;
    }

    &-button-icon {
        width: 34px;
        padding: 0;
        background-color: transparent;
    }


    &-responsive-buttons {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    &-responsive-button {
        width: 34px;
        border: none;
        cursor: pointer;
        color: #999999;
        background-color: transparent;

        &:hover,
        &-active {
            color: var(--color-primary);
        }

    }

    &-spacer {
        width: 34px;
    }

    &-button-link {
        font-size: 12px;
        line-height: 150%;
        color: var(--color-primary);
        padding-left: 0;
        padding-right: 0;
        background-color: transparent;
        text-decoration: none;
    }

    &-button-link:hover {
        text-decoration: underline;
    }

    &-toggle-buttons {
        display: flex;
        border-radius: 4px;
        height: 32px;
        overflow: hidden;
    }

    &-toggle-button-active {
        color: white;
        background-color: var(--color-primary);
    }

    &-toggle-button-disabled {
        color: var(--color-primary);
        background-color: #D9D9D9;
        cursor: pointer;
        box-shadow: inset 0.5px 0.5px 1px hsla(0, 0%, 0%, 0.25);
    }

    &-toggle-button {
        width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
    }

    &-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
    }

    &-dropdown {
        position: relative;
        cursor: pointer;

        &-menu {
            position: absolute;
            top: 100%;
            right: 0;
            display: none;
            border: 1px solid #E0E0E0;
            border-radius: 8px;
            background-color: white;
            z-index: 1;
        }

        &-open {
            display: block;
        }

        &-item {
            color: var(--color-primary);
            background-color: transparent;
            border: none;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }

        &-item:hover {
            background-color: #f0f0f0;
        }

        &-item-danger {
            color: #e22323;
        }

        &-separator {
            border-top: 1px solid #E0E0E0;
        }

        &-item-text {
            white-space: nowrap;
        }
    }

}

@media (max-width: 640px) {
    .#{$prefix}toolbar {
        &-button-text {
            display: none;
        }
        
        &-button {
            padding: 0;
            width: 36px;
        }
    }
}

.f-button-hidden {
    display: none;
}

.f-avatar-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}